Hacker News new | ask | show | jobs
by Noe2097 1353 days 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 :)

1 comments

I 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.
Like… kotlin?
Like Kotlin, but Kotlin also makes a lot of compromises to accommodate Java’s warts.