[Haskell-cafe] extending Do notation

Kim-Ee Yeoh ky3 at atamo.com
Tue May 20 19:03:33 UTC 2014


On Tue, May 20, 2014 at 11:57 PM, silvio <silvio.frischi at gmail.com> wrote:

> stmtpart1 { exp } stmtpart2
>
> should desugar to
>
> x <- exp
> stmtpart1 x stmtpart2
>

Ok, your proposal looks a lot clearer now. And in fact I've been mulling
over the same problem.

Let's kick it up a notch:

Suppose what we really want to write is just:

stmtpart1 exp stmtpart2

so that we do away with brackets, braces, and all other carpal-tunnelling
punctuation-that-looks-like-line-noise?

How would that work?


-- Kim-Ee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140521/8c57f681/attachment.html>


More information about the Haskell-Cafe mailing list