[Haskell-cafe] Wikipedia on first-class object

Wolfgang Jeltsch g9ks157k at acme.softbase.org
Fri Dec 28 10:58:53 EST 2007


Am Freitag, 28. Dezember 2007 07:49 schrieben Sie:
> On Thu, 27 Dec 2007 18:14:53 +0200, Wolfgang Jeltsch
>
> <g9ks157k at acme.softbase.org> wrote:
> > Am Donnerstag, 27. Dezember 2007 15:53 schrieb Cristian Baboi:
> >> On Thu, 27 Dec 2007 16:50:10 +0200, Lennart Augustsson
> >>
> >> <lennart at augustsson.net> wrote:
> >> > Absolutly.  Every expression in Haskell denotes a value.
> >> > Now, we've not agreed what "value" means, but to me it is a value. :)
> >>
> >> It is one value, or several ?
> >
> > It is one value with parts that are values themselves.
>
> It is one value or a SET of values ?
> What are the parts ?

A set of values is again a value.  So is a list of values.  This is similar to 
C++ where a field of an object can again be an object.

[1..] is a value of type [Int] and every element can be considered a part of 
this value.

Best wishes,
Wolfgang

P.S.: Didn’t send this to the list in the first place.  I don’t like mailing 
lists which don’t set the Reply-To: field.


More information about the Haskell-Cafe mailing list