3 ms·
I wish more languages (in fact, any popular languages!) had convenient syntax for this.
by iainmerrick 5y ago
I wish more languages (in fact, any popular languages!) had convenient syntax for this.
- pjmlp 5y agoDynamic languages have it, via "doesNotUnderstand" and similar. Kotlin also provides a way similar to those COM variants, https://kotlinlang.org/docs/delegation.html#overriding-a-member-of-an-interface-implemented-by-delegation https://kotlinlang.org/docs/delegation.html#overriding-a-mem... Best support is probably MOP in Common Lisp, I guess.
- iainmerrick 5y agoThe Kotlin version is pretty much what I had in mind, that's pretty nice.
- CRConrad 5y agoAny time one dares to defend Pascal's "with" statement, a shitstorm starts...