On Mon, 26 Jan 2004, Vincenzo aka Nick Name wrote:

> Alle 00:57, luned� 26 gennaio 2004, Ben Rudiak-Gould ha scritto:
> >
> >   (123, ^x="foo") - (45, ^x="bar", ^y="baz")
> >
> > would be converted by the compiler to
> >
> >   (123 - 45, ^x=("foo" `mappend` "bar"), ^y="baz")
> 
> It's unclear to me how would the compiler know that it's not
> 
> (123 - 45, ^x=("bar" `mappend` "foo"), ^y="baz")
> 
> This depends on order of evaluation or am I wrong? 

No, it depends only on the order of the source code. The value on the left
of the mappend is the value that's leftmost in the original expression.

-- Ben

_______________________________________________
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell

Reply via email to