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

Re: [Haskell-cafe] Re: a regressive view of support for imperative progr

Subject: Re: [Haskell-cafe] Re: a regressive view of support for imperative programming in Haskell
From: Isaac Dupree
Date: Mon, 13 Aug 2007 13:27:45 -0300
David Roundy wrote:
The only cost is that
this syntax relies on the do notation, and thus makes the desugaring of
that do notation slightly more complicated when used.

If I understand correctly,

 do
  blah
  f (do
           foo
           bar (<- action)
     )
  blah

has an ambiguity: which do-block is the action bound in? I can easily imagine myself being frustrated at having to refactor my code if the defined answer is not the one I want at the moment.

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

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