Version française
Home     About     Download     Resources     Contact us    
Browse thread
[OSR] Standard syntax extensions ?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: John Whitington <john@c...>
Subject: Re: [Caml-list] [OSR] Standard syntax extensions ?

On 24 Apr 2008, at 16:49, David Teller wrote:
> * what kind of syntactic sugar is absolutely missing from the  
> language ?

I'd like a keyword "matches", so I can write

map (matches (0, _, _)) l

rather than

map (function (0, _, _) -> true | _ -> false) l

Had anyone done that or similar in camlp4?

-- 
John Whitington
Coherent Graphics Ltd
http://www.coherentpdf.com/