docs.scala-lang icon indicating copy to clipboard operation
docs.scala-lang copied to clipboard

Update docs Scala for java devs

Open 15DV opened this issue 4 years ago • 4 comments

15DV avatar Sep 22 '21 10:09 15DV

Isn’t it too early to use these new Java features?

julienrf avatar Oct 04 '21 08:10 julienrf

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

15DV avatar Oct 07 '21 10:10 15DV

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?)

SethTisue avatar Oct 07 '21 13:10 SethTisue

@15DV care to revise in response to the review feedback?

SethTisue avatar Mar 11 '22 18:03 SethTisue