[Haskell-cafe] "Assignment" in do blocks?

Francesco Ariis fa-ml at ariis.it
Wed Aug 26 13:59:38 UTC 2015


On Wed, Aug 26, 2015 at 03:55:15PM +0300, Oleg Grenrus wrote:
> It’s not re-assigment, it’s rather feature request for non-rec-let
> (as let in Haskell is recursive)
> and some pragma to say “yes, I do shadow name on purpose"

Ah, I see. Still I feel that, as much as it is easily rewriteable to a
`lambda (etc etc` (which will shadow the first `a`)

    (let ((a 10)
          (a  5))
      (a))

will bite you back as the val-exprs list grows.



More information about the Haskell-Cafe mailing list