Browse thread
Preferred use of Invalid_argument and Failure
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Daniel_Bünzli <daniel.buenzli@e...> |
| Subject: | Re: [Caml-list] Preferred use of Invalid_argument and Failure |
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.
Best,
Daniel