[Haskell-cafe] let and fixed point operator

Dan Piponi dpiponi at gmail.com
Thu Aug 30 12:26:24 EDT 2007


On 8/30/07, Peter Hercek <peter at syncad.com> wrote:

> f x =
>    let x = x * scale in
>    let x = x + transform in
>    g x

Why are you trying to call three different things by the same name 'x'
in one tiny block of code? That's very confusing and makes it hard to
reason equationally about the code.
--
Dan


More information about the Haskell-Cafe mailing list