Skip to content

Add an ocaml-version option, format punned labelled arguments when OCaml 4.14+ syntax is selected#1759

Merged
gpetiot merged 3 commits intoocaml-ppx:masterfrom
gpetiot:fix-punned-labelled-args
Aug 3, 2021
Merged

Add an ocaml-version option, format punned labelled arguments when OCaml 4.14+ syntax is selected#1759
gpetiot merged 3 commits intoocaml-ppx:masterfrom
gpetiot:fix-punned-labelled-args

Conversation

@gpetiot
Copy link
Copy Markdown
Collaborator

@gpetiot gpetiot commented Aug 3, 2021

Follow-up on #1756

Copy link
Copy Markdown
Contributor

@nojb nojb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the version should be 4.14+, not 4.13+.

@gpetiot
Copy link
Copy Markdown
Collaborator Author

gpetiot commented Aug 3, 2021

Ah indeed, I thought it would be included in the 4.13 release

@nojb
Copy link
Copy Markdown
Contributor

nojb commented Aug 3, 2021

Ah indeed, I thought it would be included in the 4.13 release

I don't know anything about it, but I don't think it is at the moment.

@gpetiot gpetiot changed the title Add an ocaml-version option, format punned labelled arguments when OCaml 4.13+ syntax is selected Add an ocaml-version option, format punned labelled arguments when OCaml 4.14+ syntax is selected Aug 3, 2021
@gpetiot gpetiot merged commit 6620833 into ocaml-ppx:master Aug 3, 2021
@gpetiot gpetiot deleted the fix-punned-labelled-args branch August 3, 2021 11:57
@hhugo
Copy link
Copy Markdown
Collaborator

hhugo commented Aug 4, 2021

@gpetiot, what do you think about happening an issue for listing all syntaxes that need to be conditional on the ocaml version (e.g. (type a b))

@gpetiot
Copy link
Copy Markdown
Collaborator Author

gpetiot commented Aug 4, 2021

I will add a list to #633

let docv = "V" in
let doc = "Version of OCaml syntax of the output." in
let default = Ocaml_version.sys_version in
let default_doc = "the currently installed OCaml version" in
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gpetiot I think that this is not as clear as it could be. Wouldn't "the version of OCaml used to build OCamlFormat" be better?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, done in #1765

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants