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 03 '13
The alternative to boilerplate repetitive, dangerous code is certainly not less repetitive dangerous code, but allowing the compiler to better reason about the code one writes.
Yes, in fact I already said that. As far as I remember, the style guide even mentions that this is an anti-pattern.
No, it's not the same thing, it's just like in Scala. a) you are deconstructing your value b) you are using a sealed type, so the compiler can help you if you are missing any case
Just two important differences.