Hacker News new | ask | show | jobs
by iainmerrick 1653 days ago
I wish more languages (in fact, any popular languages!) had convenient syntax for this.
2 comments

Dynamic 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-mem...

Best support is probably MOP in Common Lisp, I guess.

The Kotlin version is pretty much what I had in mind, that's pretty nice.
Any time one dares to defend Pascal's "with" statement, a shitstorm starts...