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 <[EMAIL PROTECTED]> wrote:

>
> How about x below:
>
> let x=(1:x) in x ?
>
> Is x a single value in Haskell ?
>
> ------- Forwarded message -------
> From: "Cristian Baboi" <[EMAIL PROTECTED]>
> To: "Lennart Augustsson" <[EMAIL PROTECTED]>
> Cc: "[email protected]" <[email protected]>
> 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
> <[EMAIL PROTECTED]> 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
> [email protected]
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to