new keyword: infixlr?

Wolfgang Jeltsch g9ks157k at acme.softbase.org
Fri Sep 10 18:10:25 EDT 2010


Am Freitag, den 10.09.2010, 23:18 +0200 schrieb S. Doaitse Swierstra:
> On 10 sep 2010, at 20:13, Ian Lynagh wrote:
> > How would the compiler work out which parsing to prefer? Or would it
> > assume that infixlr expressions are best balanced?
> 
> Yes, that is the idea.

To me, it seems weird that optimization should be done at the level of
syntax. Note that optimization would only trigger if you write concrete
applications of the infix operator, not if you construct them
programmatically.

Best wishes,
Wolfgang



More information about the Haskell-prime mailing list