[Haskell-cafe] Why are && and || right-associative?
Ivan Perez
ivanperezdominguez at gmail.com
Fri Apr 12 09:47:15 UTC 2019
>
>
> I think this portion of the Haskell Report is also relevant to this
> intuition in the case of haskell programmers: "If no fixity declaration is
> given for `op` then it defaults to highest precedence and left
> associativity" (Section 4.4.2).
>
Sorry, this is from section 3.2.
Section 4.4.2 goes on to say: "Any operator lacking a fixity declaration is
assumed to be infixl 9"
Ivan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20190412/386e24e6/attachment.html>
More information about the Haskell-Cafe
mailing list