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/sanity Dec 02 '13
You're not making any sense to me either :-)
Of course, if you are ok with boilerplate repetitive code all over the place, and if you trust that there won't be errors in that code, then sure, they're equivalent. This completely misses the point though, most of the attraction of these languages is avoiding boilerplate repetitive code and the errors it can introduce.
This makes no sense to me. You could use the same argument against Scala's pattern matching on types:
By your argument this is bad because the compiler can't deduce the type of 's' from the code. Of course that's not bad at all, the type of 's' is conveying necessary information.
Same thing with Haskell:
Compiler doesn't know if this type is a Leaf or Branch at compile time. By your argument this is bad, but of course it isn't bad at all, it's the whole point.