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

Chaddaï Fouché chaddai.fouche at gmail.com
Sun Dec 30 16:13:43 EST 2007


2007/12/30, Cristian Baboi <cristian.baboi at gmail.com>:
> A simple question:
>
> Can you write the value of x to a file where x = (1:x) ?

Yes, but you'll have to write it yourself, because Haskell can't
decide by itself that this value is infinite and try to print it with
a recursive definition, if it could do that, it could decide the
halting problem and that's not possible.

-- 
Jedaï


More information about the Haskell-Cafe mailing list