Re:Yes, Virginia, Scala is hard
by jorgeortiz85 on Thursday September 01, 2011 @03:07PM
(#2951315)
It does whatever you want it to do. ~->, <~<, and %% are just method names. It parses like:
If those same methods were called a, b, and c instead, it would parse like:
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.
[ Parent
| on HN ]
There are no comments on this comment yet.