News for hackers. Stuff that matters.
Re:Scala 3.0 by mnd999 on Friday May 14, 2021 @12:50PM (#27156459)
It’s a shame it’s got less opinionated in other ways. Scala developers must be really looking forward to the endless debates over curly brackets vs white space.
Re:Scala 3.0 by neysofu on Friday May 14, 2021 @01:24PM (#27157004)
I still can't believe they went for that. I wouldn't really care if the team wanted to switch to significant indentation, but it's absurd to provide two altogether different syntaxes just for the sake of it.
Re:Scala 3.0 by hocuspocus on Friday May 14, 2021 @03:22PM (#27158618)
It isn't for the sake of it, breaking source compatibility would have been a major annoyance.
Re:Scala 3.0 by peq on Friday May 14, 2021 @02:04PM (#27157583)
I don't think i will be much of a problem. Braces are already optional in Scala2 if you only use a single expression. The change just gives you the option to be more consistent and remove braces everywhere.