What's the name for a class that simply contains mixins?
-
13-11-2019 - |
Pregunta
Is there a name for a class that simply acts as a holder for mixins?
A simple example in C++ would look like this:
template<typename... Mixins>
class WhatsMyName : Mixins... {
};
WhatsMyName doesn't have any functionality of its own, and is just a proxy for the mixins that it contains.
Container and Holder seem too generic, MixingBowl is too cute, and Cone is too obscure. I'm stumped!
Solución
It's a Case, or Armor. Or if you want to be cute, a Katamari.
Otros consejos
It's just a regular class. Mixins are an implementation detail and should have no effect on the naming. It should be named for what it does, not what it contains.
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow