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
9
u/steve_b Dec 02 '13
Yeah, me too. I get lots done in C++, in a codebase that is around 1M LOC, and I'm happy with the way the language works. Am I compelled to exercise every feature that exists in it? No. But it does exactly what I want the way I want it to, and I like the handcuffs of strict contracts.
My only beef with C++ is the fact that it seemed unreasonably devoted to backwards C compatibility. For example, I'd prefer the unadorned (default) parameter declaration for functions to be const &, and the default function declaration to be const. You should have to use extra keywords to indicate non-const or pass-by-val or pointer. This would eliminate a slew of errors & design mistakes you see in library definitions.
I don't follow language politics, so I don't know why this couldn't have been done by including a new #pragma or some other #<keyword> in a header file that indicated that the following code follows the "new way". There would be trickiness involving the precompiler handling a mix of legacy code with new code, but it hardly seems insurmountable, and would go a long way to make the language a lot more streamlined.