Comment by morshu9001
4 days ago
Cause it actually needed lambdas and things that go with it. Didn't need all the Scala-specific data structs like Array.
And the most important thing Java was always missing until recently, virtual threads, were lacking in Scala too.
Virtual threads is a JVM & stdlib feature, not a language feature.
(And I'd disagree that virtual threads were all that important compared to language features.)
In pretty common applications, virtual threads will make the difference between chaining futures (this.then(that).then(...)) vs not, all throughout your code. Or some frameworks had far uglier ways to deal with cooperative multitasking.