[Haskell-cafe] Why are && and || right-associative?
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...
More information about the Haskell-Cafe