Reply to post: Re: Most of these are "screw the coder" misfeatures

Java 17 arrives with long-term support: What's new, and is it falling behind Kotlin?

thinking ape

Re: Most of these are "screw the coder" misfeatures

Sealed classes allow better exhaustive switch statement analysis. Also in kotlin you have better delegation support, so instead of extending a class you delegate to it and add your own sauce (aka composition)

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon