Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Multi-matches & "when", also binding values in "when" clauses
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Nicolas barnier <barnier@r...>
Subject: Re: [Caml-list] Multi-matches & "when", also binding values in "when" clauses
Don Syme wrote:
> 
> 2. - Multiple binding in patterns
> 
> It would sometimes be nice to bind variables twice in different
> patterns, as in
> 
> match x with
>   | C y | D y -> ...
>   | E | F -> ...
> 
> Are there any plans for this?

Allowed in 3.01.

-- Nicolas
-------------------
To unsubscribe, mail caml-list-request@inria.fr.  Archives: http://caml.inria.fr