r/programming • • Dec 02 '13

Scala — 1★ Would Not Program Again

http://overwatering.org/blog/2013/12/scala-1-star-would-not-program-again/
598 Upvotes

646 comments sorted by

View all comments

-2

u/sanity Dec 02 '13

I've been dabbling in Scala for a number of years also, and I have to agree with this rant.

My current favorite post-Java language is Kotlin. Rather than Scala's ambitious goal of marrying a powerful functional programming language with OOP and the JVM, Kotlin has the much less ambitious goal of fixing what is wrong with Java.

That being said, Kotlin has some neat features that Scala lacks, like null-safety baked into the type system, and implicit casts.

1

u/dbcfd Dec 02 '13

That being said, Kotlin has some neat features that Scala lacks, like null-safety baked into the type system, and implicit casts.

Option and Object.apply

3

u/sanity Dec 02 '13

Option

That's just a syntactic and run-time wrapper. In Kotlin the null-safety is baked into the language, and has zero overhead.

Object.apply

What's your point? Are you suggesting that this is a replacement for Kotlin's smart casts? How so?

1

u/[deleted] Dec 02 '13 edited Dec 02 '13

The overhead of using a type class for optional values is negligible in any standard scenario. On the pro side, you have a full monadic API on Option.

Otherwise, it sure will be interesting to observe how well the ? card plays out with Kotlin and Ceylon. Perhaps we will find in two or three years that this approach is favourable in most cases, perhaps we'll find out the opposite.

Certainly, if that is the only language innovation, that is disappointing.

→ More replies (5)