caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Request for complete pattern matching
@ 2005-11-22 22:43 Christophe Raffalli
  2005-11-23  5:54 ` [Caml-list] " Luc Maranget
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Christophe Raffalli @ 2005-11-22 22:43 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 722 bytes --]


- Lazy constructor and function can not be matched ... and this is ennoying

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

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 know there is a BIG problem of ambiguity in the evaluation order for
complex pattern matching ...
The user should be warned about that. But this would not be a problem
for the application I have in mind.

Christophe Raffalli



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 894 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2005-11-25 22:03 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-22 22:43 Request for complete pattern matching Christophe Raffalli
2005-11-23  5:54 ` [Caml-list] " Luc Maranget
2005-11-23 14:37   ` Christophe Raffalli
2005-11-23 10:06 ` Michal Moskal
2005-11-23 15:26   ` Christophe Raffalli
     [not found] ` <43842069.3070700@yahoo.fr>
2005-11-23 14:47   ` Christophe Raffalli
2005-11-23 18:31     ` Luc Maranget
2005-11-23 20:56       ` Martin Jambon
2005-11-23 21:30         ` skaller
2005-11-23 22:25           ` Martin Jambon
2005-11-24  9:29         ` Luc Maranget
2005-11-25 23:01           ` Martin Jambon
2005-11-23 20:56       ` Christophe Raffalli
2005-11-24  9:41         ` Luc Maranget

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).