[Haskell-cafe] Re: Wikipedia on first-class object

Cristian Baboi cristi at ot.onrc.ro
Fri Dec 28 08:15:47 EST 2007


But I guess it won't work because the compiler will optimize it and the  
call will disappear.


On Fri, 28 Dec 2007 14:58:53 +0200, Cristian Baboi <cristi at ot.onrc.ro>  
wrote:

> Here is how I want print to be in Haskell
>
> print :: (a->b) -> (a->b)
>
> with print = id, but the following "side effect":
>
> - I want to call the print function today, and get the value tomorrow.
>
>


________ Information from NOD32 ________
This message was checked by NOD32 Antivirus System for Linux Mail Servers.
  part000.txt - is OK
http://www.eset.com


More information about the Haskell-Cafe mailing list