caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* camlp4 rewrites
@ 2005-02-24 20:37 David Monniaux
  2005-02-24 21:45 ` [Coq-Club] " Pierre Letouzey
  2005-02-24 22:23 ` [Caml-list] " Martin Jambon
  0 siblings, 2 replies; 3+ messages in thread
From: David Monniaux @ 2005-02-24 20:37 UTC (permalink / raw)
  To: coq-club, caml-list

I'm currently playing with Coq and extraction, and I'm having the 
following problems:
* Since the list constructor of standard OCaml (infix ::) is not (yet) 
usable as a prefix ( :: ), I cannot just tell Coq to extract lists to 
OCaml lists. (Future OCaml versions will allow prefix ( :: ), I'm told.)
* OCaml compiles match e with true -> x1 | false -> x2 less efficiently 
than if e then x1 else x2 (bug report filed, but not fixed so far).

Unless I'm greatly mistaken, this can be fixed by a mere syntactic 
transformation using Camlp4. I suppose I'm not the first person to have 
encountered these problems... So has anybody done the necessary Camlp4 
scripts? :-)


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

end of thread, other threads:[~2005-02-24 22:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-24 20:37 camlp4 rewrites David Monniaux
2005-02-24 21:45 ` [Coq-Club] " Pierre Letouzey
2005-02-24 22:23 ` [Caml-list] " Martin Jambon

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).