docs.scala-lang
docs.scala-lang copied to clipboard
Update docs Scala for java devs
Isn’t it too early to use these new Java features?
Isn’t it too early to use these new Java features? Only pattern matching for switch is in preview in Java 17 LTS. Other features were released
I don't think this change as mergeable as-is. Few people are able to use Java 17 at their jobs yet, so I think the comparison with old Java remains relevant and should remain present and foregrounded.
I wouldn't object if the text also compared case classes with the new Java 17 feature, as long as it's clear that it's brand-new. But I think that text would need to reflect somebody having taken a close look at the differences between Java records and Scala case classes, to make sure we're not giving the impression that Java records are completely just as good... (unless they actually are?)
@15DV care to revise in response to the review feedback?