News for hackers. Stuff that matters.
Re:From First Principles: Why Scala? by pdpi on Thursday February 11, 2021 @11:32AM (#26103547)
> Scala has tons of language features and lets people do crazy things in the code.

In many ways, it's even worse than that. Scala has exactly two features (implicits and punctuation-free method calls) that allow you to build massively complicated libraries that pretend to be language features, and which work worse than equivalent features in languages that support them explicitly. A good example of this is typeclasses which are core features of haskell and rust, but are implemented by explicitly passing implicits (hah) in Scala.

Re:From First Principles: Why Scala? by yw3410 on Thursday February 11, 2021 @11:45AM (#26103755)
Scala 3 has type-classes as a core feature.
Re:From First Principles: Why Scala? by pdpi on Thursday February 11, 2021 @12:31PM (#26104467)
Right. We don't have a full production 3.0 release yet, so I tend to think of "Scala" as Scala 2 unless it's specifically qualified as Scala 3.

Scala 3 seems to be a really good step in the right direction for me. There's a clear desire for many of the features that are currently achieved through burdensome hacks on top of implicits, and actually reifying several of them into core language features is a counterintuitive way to make things simpler rather than more complicated.

Re:From First Principles: Why Scala? by cutler on Friday February 12, 2021 @06:10PM (#26119653)
As far as I'm aware implicits are alive and well in Scala 3 and will, I predict, be Scala's ultimate downfall.
Re:From First Principles: Why Scala? by lmm on Thursday February 11, 2021 @08:54PM (#26109959)
No it doesn't, it has syntax to make them look more like a language feature but they're actually still just implicits.