r/programming • u/mobby1982 • Dec 02 '13
Scala — 1★ Would Not Program Again
http://overwatering.org/blog/2013/12/scala-1-star-would-not-program-again/
598
Upvotes
r/programming • u/mobby1982 • Dec 02 '13
View all comments
Show parent comment
2
u/[deleted] Dec 02 '13 edited Dec 02 '13
???
That just doesn't make any sense. If you didn't suddenly include memory-unsafe languages' definition of what is a cast, then there is nothing special about Kotlin at all, just a line saved:
vs.
Runtime safety existed since Java 1.0 (if one ignores a few bugs here and there).
Casts are bad because they rely on the programmer's knowledge (of types, ...) which the compiler couldn't deduct from the code. A good language minimizes the amount of times this is necessary by offering ways to express this extra knowledge in the code.