
6 Sep
2010
6 Sep
'10
2:55 p.m.
On Mon, Sep 6, 2010 at 2:21 PM, Daniel Díaz
El Lun, 6 de Septiembre de 2010, 7:50 pm, David Menendez escribió:
Operators default to infixl 9 unless specified otherwise, so no infix declaration is needed.
Why there is a default infix? Why it is 9?
That's what the Haskell Report says: "Any operator lacking a fixity
declaration is assumed to be infixl 9" (section 4.4.2).
Any function with at least two arguments can be used as an operator,
so there has to be a default. Presumably, infixl 9 was considered the
least surprising.
--
Dave Menendez