Hacker News new | ask | show | jobs
by esafak 428 days ago
Java's sealed interfaces enable typing errors.

https://blogs.oracle.com/javamagazine/post/java-sealed-class...

1 comments

Although syntactically lightweight it is the opposite of.
I agree; Java is constitutionally incapable of being lightweight. I much prefer Typescript's union syntax. I'm glad Python copied it.
records are lightweight