Question

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!

Was it helpful?

Solution

It's a Case, or Armor. Or if you want to be cute, a Katamari.

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top