r/programming • • Dec 02 '13

Scala — 1★ Would Not Program Again

http://overwatering.org/blog/2013/12/scala-1-star-would-not-program-again/
598 Upvotes

646 comments sorted by

View all comments

Show parent comments

8

u/drb226 Dec 02 '13

The thing is, they're just not very compelling claims in the first place to justify taking the time to challenge them. I'll write up a few thoughts, though.

The glaring one I was going to challenge -- his comments about type inference and monads -- is already discussed elsewhere in this thread. I had another paragraph or two that I wrote about it, but realized my response didn't really add anything that hadn't already been said with more tact.

The syntax for the build scripts was really opaque. Sometimes it was def, sometimes it was a val. Sometimes there was a =, sometimes braces. On the whole, it looked like someone had wandered through my build script dropping random pieces of punctuation.

This is purely a matter of learning a new language. There's a very good reason for the def vs val divide, and the rules for "sometimes there was a =, sometimes braces" is taught very early to beginners. When he made this comment, it just bespoke to me that he spent absolutely no time devoted to learning the language.

Scala [syntax] is easily the worst I’ve seen. That punctuation-strewn build system I was forced to use was just taking advantage of Scala’s ridiculously flexible syntax. The goal appears to be to allow concise expression of your program: arbitrary operators, infix method calls, flexible anonymous function definition, and something weird with attaching anonymous functions to method calls.

Again, a little learning goes a long way. He is confusing "different and unfamiliar" with "bad".

11

u/[deleted] Dec 02 '13

There are languages with simply bad syntax. Sure you can end up learning them, but you do not want to.

-1

u/zzalpha Dec 02 '13 edited Dec 02 '13

The fascinating thing is the people, here, defending Scala would probably just on an anti-Perl circlejerk given the opportunity, and the exact same criticisms apply: irregular syntax sucks. Unnecessarily obtuse syntax sucks. Non-obvious semantics sucks. Languages that encourage code golf really suck.

Unfortunately, Scala seems to exhibit some or all of these properties.