[Haskell-cafe] Why are && and || right-associative?

Richard Eisenberg rae at richarde.dev
Fri Apr 12 14:47:27 UTC 2019

> On Apr 12, 2019, at 5:21 AM, Richard O'Keefe <raoknz at gmail.com> wrote:
> How does the right associativity of the short-circuiting
> Boolean operators in any way contradict the way that such operators work in other languages? 

If you look at definitions of other languages (C, Java), you see that the operators are defined to be left-associative. Perhaps those other languages got it wrong, then. :)

In any case, this conversation has been illuminating. Thanks!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20190412/8abc0424/attachment.html>

More information about the Haskell-Cafe mailing list