Sun, 4 Jun 2000 14:57:05 -0700, Levent Erkok <[EMAIL PROTECTED]> pisze:

> > And "<-"-bound variables would be visible everywhere too?
> 
> That's right.

I think "let" in the syntax can be dropped.

One reason of having "let" is that we must distinguish between
    do
        let x = e1
        let y = e2
        ...
and
    do
        let x = e1
            y = e2
        ...
where e1 can refer to y in the second case but not in the first.

Unfortunately the layout rules make it inconvenient:
    do
        x <- long expression
            split into lines and indented - this is OK.
        let y = another long expression
                must be indented more!
        ...

It would be nice to be able to write just
    do
        x = e1
        y = e2
        ...
probably even keeping the old let for compatibility.

-- 
 __("<    Marcin Kowalczyk * [EMAIL PROTECTED] http://qrczak.ids.net.pl/
 \__/              GCS/M d- s+:-- a23 C+++$ UL++>++++$ P+++ L++>++++$ E-
  ^^                  W++ N+++ o? K? w(---) O? M- V? PS-- PE++ Y? PGP+ t
QRCZAK                  5? X- R tv-- b+>++ DI D- G+ e>++++ h! r--%>++ y-


Reply via email to