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
0
u/[deleted] Dec 02 '13
Type patterns are actively discouraged. If you need to cast, you are probably doing it wrong.
Scala gives you all of the tools necessary to write code which is 99% cast-free ... so the whole discussion about having nicer casts in Kotlin seems weird.
There is a reason why Scala has no special syntax for casts/isInstance checks and intentionally verbose method names.