haskell-cafe@haskell.org
[Top] [All Lists]

[Haskell-cafe] Re: Re: monad subexpressions

Subject: [Haskell-cafe] Re: Re: monad subexpressions
From: Chris Smith
Date: Fri, 3 Aug 2007 09:26:28 -0600
Neil Mitchell <ndmitchell@xxxxxxxxx> wrote:
> We started with 4 suggestions, and as far as I can tell, are
> left with only one (<- ...).

> For the record, my comments on (<- ...) where not objections, but
> merely "thoughts out loud", and I could certainly see myself using
> that syntax in a day to day basis.

Right, I definitely didn't read your post as objecting to the syntax.

I do have concerns about it.  In particular, the section-like syntax 
suggests to me (quite misleadingly) that it is somewhat self-contained.  
I find myself half expecting to be able to rewrite (mapM f xs) as
(map (<- f) xs), or something like that.  In other words, the syntax 
lies to me.

At the moment, though, I can't think of anything better.

-- 
Chris Smith

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@xxxxxxxxxxx
http://www.haskell.org/mailman/listinfo/haskell-cafe

<Prev in Thread] Current Thread [Next in Thread>