Browse thread
Request for complete pattern matching
[
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: | 2005-11-23 (05:54) |
From: | luc.maranget@i... |
Subject: | Re: [Caml-list] Request for complete pattern matching |
> > - Lazy constructor and function can not be matched ... and this is ennoying I guess there must be a reason for not matching Lazy constructor, in fact I see no constructor in the Lazy module. Maybe I am missing something here. > > I saw a post recently about lazy constructor and I can not write the > camlp4 extension I want because of the second limitation ... > > It may be not clear what I mean by matching a function (looks impossible > ;-). I mean something like You bet. > > pattern <= expr expr expr is a pattern > > and a function f is matched by > > p <= e1 ... eN iff f e1 ... eN is matched by p > > (I do not care about the final syntax ...) I do not get the idea either, can you be a bit more specific ? I have more or less the feeling that match f with pattern <= expr expr expr -> bonga means match f expr expr expr with p -> bonga Thus I hardly seen your point. --Luc Maranget