Johannes Waldmann <[EMAIL PROTECTED]> writes:

> I liked to think of it as just a syntactical convention (for years ...)
> but is it really at no cost? It does introduce extra function calls,
> that is, extra closures etc.? Can these be removed by ghc's optimizer?

It is inlined by GHC when optimization is turned on.

In general it doesn't have to be optimized out - it's just a function -
but it's easy to inline and eliminate, if the compiler performs any
inlining at all.

-- 
   __("<         Marcin Kowalczyk
   \__/       [EMAIL PROTECTED]
    ^^     http://qrnik.knm.org.pl/~qrczak/
_______________________________________________
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell

Reply via email to