[Haskell-cafe] let and fixed point operator
Paul Hudak
paul.hudak at yale.edu
Thu Aug 30 13:53:47 EDT 2007
Andrew Coppin wrote:
> OK, so it's only tangentally related, but... do you have *any idea*
> how many times I've written something like
>
> let x = (some complex function of x)
> in (some other complex function of x)
>
> when in fact what I *meant* to do was type x' instead of x?!
I try not to use primes (x', x'', etc.) on variables for exactly this
reason, and instead try to use more descriptive names, such as "newx",
or "y", or whatever. Of course you can still make typing mistakes, but
that's always the case...
-Paul
More information about the Haskell-Cafe
mailing list