


Honestly, even without Scala 3 I won't consider switching any time soon.
#Scala future free
If none of these fit your outlook, feel free to make up your own answer. c) Scala will actually become big enough to compete with Java in many respects.
#Scala future Patch
Null is a bad idea and the elvis operator is a patch rather than a proper solution (IMO). It’s nice to see Scala doing reasonably well so far, so now’s your chance to make a prediction on the future of Scala: b) Scala will become the dominant second language for the JVM. I also find both Options and true union types vastly better conceptually than the elvis operator. When you invoke a function the thread waits while function finishing execution and returns the result, if the result is a future then the execution is carried out asynchronously by. Kotlin doesn't really need something like that, but you will find it recommend in the Kotlin sub quite often. We have to find a balance, and I feel that the Scala community is better at finding that balance in recent years.Īlso, for me, one of the most unattractive parts of Kotlin is that it seems to embrace the Java way of working, like Spring. The things you can do with generic programming are amazing, and will be vastly improved in Scala 3. But I would choose that over not having this power at all. Implicits, macros, and type-level programming are double-edges swords, and have been abused in the past. Kotlin seems more polished, but IMO is more of a local maximum, whereas Scala is rough around the edges, but ultimately a better way of programming. As a result Scala is in it's core simpler and provides more orthogonal features, but also requires changing your way of thinking. I recommend watching some of Odersky's talks about the design to see what I mean. Whereas Scala embraces a different model all together (truly merging OOP and FP from the ground up). Kotlin seems to be a refinement of popular ideas and popular languages. Both the language and the ecosystem seem to embrace it in such a way that Kotlin simply doesn't. Scala is much more oriented towards FP, both pure and impure. And if it will, it won't be because of Kotlin. My (also obviously biased) answer would be that Scala has substantial benefits over Kotlin and I don't see it dying any time soon. 100M+ humans have visited HackerNoon to learn about. pure Swift 2 library implementing Scala-style futures and promises with. HackerNoon is a free platform with 25k+ contributing writers. Obviously you will get different answers here than when you ask the same question in the Kotlin sub. In computer science, future, promise, delay, and deferred refer to constructs used for. This questions pops up every few months or so. Telemetry for Scala Futures needs to be explicitly enabled, and Futures need to be explicitly named in code, using a naming API provided by the Cinnamon Scala module.
