News for hackers. Stuff that matters.
Re:New language features since Java 8 to 17 by leroman on Sunday October 24, 2021 @02:47PM (#28980792)
Scala still has a better design at its base, which is missing from Java and I don’t see how Java can retro-fit it into the language, Immutability is a big part of being functional and doing safe multi-threading stuff, java is doing all the good syntactic stuff (case class, switches with guards etc) but without immutability it’s a far cry from the same facility in Scala land. Having said that, this trend is welcome for every time I have to write Java and makes it feel more natural to me as an old time Scala developer.
Re:New language features since Java 8 to 17 by kaba0 on Monday October 25, 2021 @03:38AM (#28985325)
With records, Java does try to embrace immutability to a certain degree, but of course it will never be completely immutable.