H98 Report: expression syntax glitch
Ross Paterson
ross@soi.city.ac.uk
Mon, 25 Feb 2002 17:20:51 +0000
On Mon, Feb 25, 2002 at 05:07:35PM -0000, Simon Marlow wrote:
> On the other hand, one way to fix this problem *is* to specify the
> relative precedence of 'let' & co. as compared to infix operators
> (namely that 'let' should have a lower precedence). That would be a
> reasonable fix for the H98 report, IMO.
Except that it would break programs containing expressions like
1 + let x = 2 in e
or (if you do the same for lambda)
f $ \x -> e
The old table had let (and if and lambda) in two places, which is
more less what GHC/Hugs do, but not a mere clarification.