3 ms·
It's similar, but there are some differences. Notably, my package can implement my trait for your type, while my package (usually? always?) cannot make your ty
by dllthomas 4y ago
It's similar, but there are some differences. Notably, my package can implement my trait for your type, while my package (usually? always?) cannot make your type inherit from my virtual base class.
- pjmlp 4y agoDepends on the flexibitly of the language, there isn't a golden way to do that across all variations of OOP.
- eklavya 4y agoWrapper classes should be equally good once Valhalla (jdk) lands, without introducing another pointer indirection.
- adamc 4y agoInteresting but Java gets more and more complex in a way that does not make me want to write things in Java.