3 ms·
You can do that exact same matching in Scala (except it's value match { case Some(...}), and the great way to avoid things changing are to use non-mutable types
by djsumdog 10y ago
You can do that exact same matching in Scala (except it's value match { case Some(...}), and the great way to avoid things changing are to use non-mutable types (a val instead of a var).
I have not played much with Kotlin, but I feel like Scala deals with a lot of the issues he brings up already (although it has a ton of issues itself; some stemming from it being so tied to the underlying Java Runtime and others from bad design decisions).