English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] variant with tuple arg in pattern match?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-04-07 (07:43)
From: Fergus Henderson <fjh@c...>
Subject: Re: [Caml-list] variant with tuple arg in pattern match?
On 06-Apr-2001, Xavier Leroy <Xavier.Leroy@inria.fr> wrote:
> Frankly, I think there is no point in maintaining the illusion that
> datatype constructors are either nullary (constant) or unary.  The
> only efficient implementation model is N-ary constructors, so let's
> reflect this in the language.

Sounds good to me.  Now, for consistency, shouldn't you do the same
for function arguments? ;-)

Fergus Henderson <fjh@cs.mu.oz.au>  |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
To unsubscribe, mail caml-list-request@inria.fr.  Archives: http://caml.inria.fr