Version française
Home     About     Download     Resources     Contact us    
Browse thread
Preferred use of Invalid_argument and Failure
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] Preferred use of Invalid_argument and Failure
On Wed, Oct 24, 2007 at 03:22:39PM +0200, Daniel Bünzli wrote:
> 
> Le 24 oct. 07 à 15:15, Yaron Minsky a écrit :
> 
> >As in:
> >
> >  map_of_alist : ('a * 'b) list -> [ `Repeated_key of 'a | `Succ of  
> >('a,'b) Map.t ]
> >
> >The return value is both explicit and a polymorphic variant.
> 
> Interesting solution. I would however suggest `Value instead of `Succ 
> (ess ?). I was confused thinking about  `Succ(essor) because of  
> Pervasives.succ.

Same confusion here (Succ notation for natural numbers).

Rich.

-- 
Richard Jones
Red Hat