On 28 aug 2009, at 08:11, Jason Dusek wrote:

2009/08/27 Bulat Ziganshin <[email protected]>:
...stop reusing Prelude operators, in particular, replace "-"
with "$"?

I have to say, the `$ do` construct is an eyesore and `- do` is a
lot easier on the eyes.

Would it introduce ambiguity in the Haskell grammar if

  foo do...

  foo case...

  foo if...

were always parsed as:

  foo (do...)

  foo (case...)

  foo (if...)

For the first two it would not make a difference, since they are essentially closed constructs, following the offside rule which inserts a } at the place where they end, so this cannot give rise to an ambiguous interpretetation. One might even argue that their current precedence level in the Haskell definition is "suboptimal". The "if" is a different thing, due to the absence of offside rules for if.

Doaitse



This is what is usually meant.

--
Jason Dusek
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to