caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] ppx replacement for pa_macro?
@ 2015-11-02 21:11 Markus Mottl
  0 siblings, 0 replies; only message in thread
From: Markus Mottl @ 2015-11-02 21:11 UTC (permalink / raw)
  To: OCaml List

Hi,

it seems that a good chunk of camlp4-based preprocessors has been
translated to ppx.  However, I haven't seen a good (or hopefully even
better) replacement for pa_macro yet.

OCaml is still a bit lacking in the inlining department, e.g. for
partially applied functions where the supplied parameters are known at
compile time.  Until this changes, macro substitutions are my only
option in certain cases if I want to avoid cut&paste or larger
closures, expensive function calls, etc.

I like the pa_macro feature for locally defined macros, but it's a
pity that it doesn't support "higher-order" macros (that can be passed
around), and it's also the last thing that prevents me from fully
switching to ppx.

Any alternatives?  Is anybody working on a more powerful, ppx-based replacement?

Regards,
Markus

-- 
Markus Mottl        http://www.ocaml.info        markus.mottl@gmail.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-11-02 21:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-02 21:11 [Caml-list] ppx replacement for pa_macro? Markus Mottl

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