[Haskell-cafe] let vs. where

C.M.Brown cmb21 at kent.ac.uk
Wed Nov 14 04:30:39 EST 2007

Hi Neil,

> Why not:
> exp = let blah = g 1000
>          in (fst blah, snd blah)

Yes, fair enough.

> Where's always get desugared to let's, so where's are never more efficient.

Interesting. I'm thinking a where-to-let refactoring and its converse may
make useful routine refactorings for HaRe.


More information about the Haskell-Cafe mailing list