2 ms·
I work in a Smalltalk shop where we get around Smalltalk's lack of Interfaces/Multiple Inheritance with State/Strategy objects. That's not so unusual. What go
by stcredzero 19y ago
I work in a Smalltalk shop where we get around Smalltalk's lack of Interfaces/Multiple Inheritance with State/Strategy objects. That's not so unusual. What goes against the grain is our eschewing polymorphism in that one situation, instead having case statements for the different object types. My boss prefers that because he feels it's better from a code management standpoint. The rest of us just quietly acknowledge to ourselves that it's not real OO, and play along.
Surprisingly, it works well, probably because it discourages us from making those things too complicated. The frameworks/APIs used by those objects have to be clean.