[Haskell-cafe] Wikipedia on first-class object

Lennart Augustsson lennart at augustsson.net
Thu Dec 27 09:50:10 EST 2007


Absolutly.  Every expression in Haskell denotes a value.
Now, we've not agreed what "value" means, but to me it is a value. :)

  -- Lennart

On Dec 27, 2007 3:28 PM, Cristian Baboi <cristi at ot.onrc.ro> wrote:

>
> How about x below:
>
> let x=(1:x) in x ?
>
> Is x a single value in Haskell ?
>
> ------- Forwarded message -------
> From: "Cristian Baboi" <cristi at ot.onrc.ro>
> To: "Lennart Augustsson" <lennart.augustsson at gmail.com>
> Cc: "haskell-cafe at haskell.org" <haskell-cafe at haskell.org>
> Subject: Re: [Haskell-cafe] Wikipedia on first-class object
> Date: Thu, 27 Dec 2007 16:08:58 +0200
>
> On Thu, 27 Dec 2007 14:02:36 +0200, Lennart Augustsson
> <lennart.augustsson at gmail.com> wrote:
>
> > Comparing functions is certainly possible in Haskell, but there's no
> > standard function that does it.
> > If course, it might not terminate, but the same is true for many other
> > comparable objects in Haskell, e.g., infinite lists (which are
> > isomorphic to
> > Nat->T).
>
> The list [1 .. ] is a single value in Haskell ?
>
>
>
>
> ________ Information from NOD32 ________
> This message was checked by NOD32 Antivirus System for Linux Mail Servers.
>  part000.txt - is OK
> http://www.eset.com
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20071227/d4fcc42b/attachment.htm


More information about the Haskell-Cafe mailing list