Show HN: Traits for Java via True Delegation
github.com
github.com
Change my mind.
This is the main takeaway by the "billion dollar mistake". It is not the fact that nullability can be a problem. It is the easiness of creating a "nullability feature" that was too tempting not to include it.
Same with inheritance. All you need for inheritance is a class pointer from your subclass to your superclass. But on top of method delegation, you also got layout inheritance.
Layout polymorphism is rarely something you want.