Hacker News new | past | comments | ask | show | jobs | submit login

> Can you tell me, without looking at a chart, whether $ or >>= has higher precedence, and what kind of associativity they have?

No, which is why I don't think that should be allowed. Scala doesn't do that - all "custom operators" have the same precedence, and the global rule is that anything ending in : associates to the right (and is defined by the thing on its right), otherwise to the left. So I could answer those questions easily for a Scala library.




Those weren't custom operators in Haskell, they are part of the prelude.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: