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

Joachim Durchholz jo at durchholz.org
Sat Apr 13 15:22:42 UTC 2019


Am 13.04.19 um 15:34 schrieb Jerzy Karczmarczuk:
> Joachim says in his previous posting:
> 
>> I guess my intuition is more based on math, where associativity is an 
>> irrelevant detail
> Now, this is for me a *REALLY* peculiar vision of math. Irrelevant 
> detail??

Please look at the context: This is about left vs. right associativity 
(the parsing property).
Which is irrelevant if the operator is associative (the algebraic property).

Regards,
Jo


More information about the Haskell-Cafe mailing list