What's the name for a class that simply contains mixins?
-
13-11-2019 - |
質問
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!
解決
It's a Case, or Armor. Or if you want to be cute, a Katamari.
他のヒント
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.
所属していません StackOverflow