[Haskell-cafe] Functions are first class values in C

Jeremy Apthorp nornagon at gmail.com
Sat Dec 22 09:50:34 EST 2007


On 23/12/2007, Peter Verswyvelen <bf3 at telenet.be> wrote:
> Cristian Baboi wrote
> > Lazy constant in C:
> > int C1 (){ return 7; }
>
> Not really, this is not lazy, since it always recomputes the value "7".

Actually GCC will happily optimise this away in almost all cases.

--
- Jeremy Apthorp


More information about the Haskell-Cafe mailing list