Fwd: Re: [Haskell-cafe] Wikipedia on first-class object
cristi at ot.onrc.ro
Thu Dec 27 05:23:21 EST 2007
------- Forwarded message -------
From: "Cristian Baboi" <cristi at ot.onrc.ro>
To: "Yitzchak Gale" <gale at sefer.org>
Subject: Re: [Haskell-cafe] Wikipedia on first-class object
Date: Thu, 27 Dec 2007 12:21:44 +0200
I think I found the answer to why functions cannot be written to files.
This is by design. Haskell must be free.
Enabling writing functions to files, might make it ilegal in some
On Thu, 27 Dec 2007 11:10:21 +0200, Yitzchak Gale <gale at sefer.org> wrote:
> Like any type, only certain operations make
> sense on functions. Strings can be compared to each
> other for equality and written to a disk, and you
> can take the logarithm of a float, but none of those
> operations make sense for functions. In particular,
> two functions are equal only if they produce
> the same value for every input, and in general it is
> impossible for a computer to check that.
> ________ Information from NOD32 ________
> This message was checked by NOD32 Antivirus System for Linux Mail
> part000.txt - is OK
________ Information from NOD32 ________
This message was checked by NOD32 Antivirus System for Linux Mail Servers.
part000.txt - is OK
More information about the Haskell-Cafe