Re:Why general inheritance is flawed and how to finally fix it
by iainmerrick on Monday December 13, 2021 @05:41AM
(#29538405)
I wish more languages (in fact, any popular languages!) had convenient syntax for this.
[ Parent
| on HN ]
Re:Why general inheritance is flawed and how to finally fix it
by pjmlp on Monday December 13, 2021 @10:14AM
(#29540279)
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.
Re:Why general inheritance is flawed and how to finally fix it
by iainmerrick on Monday December 13, 2021 @11:58AM
(#29541424)
The Kotlin version is pretty much what I had in mind, that's pretty nice.