3 ms·
That would be a case for an enumeration, not a plain class. This usage would make me think: "And where does it get instantiated?" It is a fake class and this us
by zelphirkalt 4y ago
That would be a case for an enumeration, not a plain class. This usage would make me think: "And where does it get instantiated?" It is a fake class and this usage should be avoided.
- mjburgess 4y agopython -- syntax doesnt just correspond to one idea, the class keyword has a semantics entirely independent of an OO interpretation the whole point of design patterns is, exactly, to reuse "class etc." syntax for essentially non-OO purposes