Hacker News new | ask | show | jobs
by Ericson2314 3490 days ago
Things like the ^ quoting get more complex. You need to quite the target's version of the module.
1 comments

Oh I see what you mean. For now, we have made the choice to compile static code to OCaml bytecode, whatever the compilation target is. While this enables the use of macros regardless of the target (e.g. it works in `ocamlopt`, the native compiler), it does make it necessary to compile a module to bytecode if you want to lift it. It's not a big deal with an adapted build system, but a distant future we might support native compilation of macros on some architectures.