[Warnings: newbie and not having tested or read the generated assembly code.]
On Wed, Sep 06, 2006 at 09:32:07AM -0300, Alex Queiroz <[EMAIL PROTECTED]> wrote a message of 18 lines which said: > I am a newbie myself (second week of learning Haskell), but I'll > give it a shot: Since functions have no side effects, the compiler > executes the function only once. Sure, "pure" programming languages *allow* the compiler to perform such optimizations but it does not mean it is *actually* done (promises are cheap but writing compiler code is expensive). _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe