[Haskell-cafe] Let it be
Felipe Lessa
felipe.lessa at gmail.com
Thu Oct 8 13:18:47 EDT 2009
On Thu, Oct 8, 2009 at 2:07 PM, Ross Mellgren <rmm-haskell at z.odi.ac> wrote:
> there is at least one ticket in Haskell' to fix it for if/then/else
...and there isn't one for let/in because you can use just let
(without in) inside a do-block. Of course the meanings are different
as in the first case the let-bound variables scope only the 'in ...'
part, while without in it scopes the rest of the do block:
do {ini; let ... in ...; rest} => ini >> (let ... in ...) >> rest
do {ini; let ...; ...; rest} => ini >> (let ... in (... >> rest))
HTH,
--
Felipe.
More information about the Haskell-Cafe
mailing list