Hacker News new | ask | show | jobs
by jules 5431 days ago
How does Scala figure out the precedence on that? And in general what does `word1 word2 ... wordN` mean?
1 comments

It goes something like:

  a b c d e f g
becomes:

  a.b(c).d(e).f(g)
I've never tried Scala so I'm speaking from ignorance here, but that looks awfully hard to parse for a human reader. I much prefer Haskell's:

     zipWith (\x y->  x ++ " : " ++ show y) names ages