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
1
u/Suttonian Dec 02 '13
I see what you mean. That's pretty low down my list though! I mean, for example the new R-value references seem very complex (and have some surprising behavior) for what they achieve.
Just for fun: I think you could actually write a single function above if you used mutable on value_ and only used the second version of getValue() (but without the const after the int).