3 ms·
I'd say that that's an example of structural or duck typing (as opposed to nominal typing). In my experience it is nigh impossible to design-pattern your way o
by filleduchaos 5y ago
I'd say that that's an example of structural or duck typing (as opposed to nominal typing).
In my experience it is nigh impossible to design-pattern your way out of a language simply being unable to express what you need it to express without incurring a severe performance penalty (anathema for game development) or resorting to code generation (which is itself prone to ending up as a Gordian knot).
- lmm 5y ago> I'd say that that's an example of structural or duck typing (as opposed to nominal typing). No it's not. I'm talking about having nominal typing but easy support for delegation (e.g. look at how Kotlin does it).