22 ms·
Couldn't agree more. Recently I tried another take on the same idea: using default methods in Interfaces. It has nice properties, as it enables ~mixins in a wa
by Noe2097 4y ago
Couldn't agree more.
Recently I tried another take on the same idea: using default methods in Interfaces. It has nice properties, as it enables ~mixins in a way not dissimilar to what Scala provides, and enables overriding (e.g. for tests). Give it a try, it's ... refreshing :)
- mcculley 4y agoI am also getting a lot of value from default methods in interfaces. Java really could benefit from a new syntax on top of the modern VM that favors immutability.
- grodriguez100 4y agoLike… kotlin?
- mcculley 4y agoLike Kotlin, but Kotlin also makes a lot of compromises to accommodate Java’s warts.