Pexp_newtype vs. Pexp_function (in OCaml 5.2.0) ? #13122
Unanswered
chetmurthy
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In OCaml 5.1.0, there were three different constructors for functions:
With OCaml 5.2.0, all three are unified into Pexp_function, but Pexp_newtype still exists. Is there a reason for this I'm not seeing? The specific reason I ask, is that if you're doing something like
ppx_metaquot
, the fact that there are two different ASTs for what is actually the same surface syntax -- two entirely different AST constructors -- would seem to make it difficult to implement a metaquot facility.Beta Was this translation helpful? Give feedback.
All reactions