In article <[EMAIL PROTECTED]> [EMAIL PROTECTED]
(Paul Hudak) writes:
Array notation conventions aside, I think the simple rule that normal
application has higher precedence than infix application is a Big Win.
So do I, and therefore I'm not seriously suggesting a change.
Howerver, emphasising the "function application binds tightest" rule
might be worth a small note somewhere in any document that mentions
arrays. I realise it is already in the manual, but something a little
closer to the array section would be nice (maybe a footnote?)
Perhaps the committee should have introduced special syntax for arrays,
but that was simply not palatable to most of the members, even though
it was for lists.
Bit of a double standard eh? :-)
Of course, if you really don't like the parens, you can always write
your example as: "f $ x!i" where ($) is defined in the prelude as:
infixr 0 $
f $ x = f x
(:-) -Paul
My usual solution is just to throw parens around _everything_ and make
it look like Scheme :-)
bevan