Another trend I see in Scala is the abuse of symbols-as-method names. I see a lot of Scala (and Lift) code that looks like
val foo = bar ~-> 45 <~< "Fred" %% x
with little commonality of convention.Another trend I see in Scala is the abuse of symbols-as-method names. I see a lot of Scala (and Lift) code that looks like
val foo = bar ~-> 45 <~< "Fred" %% x
with little commonality of convention.It is absolutely possible to write code like that in Scala.
It is also possible to write code that is to read and understand and which makes perfect sense.
It all depends on the programmer.
I realize expert programmers can write legible code in any language, in the same way Tiger Woods can best me over 18 holes using only a five iron. But there are some languages, like C++, that tempt mediocre programmers into writing illegible code. That's a big strike against, IMO.
Function1 [-T1, +R]
Then you should be fine[1] Explanation here: http://stackoverflow.com/questions/5277526/real-world-exampl...
Take a look at the APIs of some of the libraries you are likely to use, before you get scared off by how complex the syntax can potentially be.
val foo = bar.~->(45).<~<("Fred").%%(x)
If those same methods were called a, b, and c instead, it would parse like: val foo = bar.a(45).b("Fred").c(x)
Yes, some people abuse symbolic method names. Unless your method makes overwhelming sense with a symbolic name (+, -, *, etc), just don't do that. But this problem isn't unique to Scala; poor names can strike in any language. If I called my method "slfjowierlksdfjnas", that'd be bad too. But most developers have enough common sense to choose reasonable names for their methods.