-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for old versions of the compiler. #633
Comments
While formatting some part of js_of_ocaml, I had to manually tune few places to stay compatible with ocaml 4.02.3. The churn was not very big, work around were trivial. Unsure if it could become painful overtime. |
This came up again a couple times:
Initially I was thinking that an option for target version would work, but maintaining concrete syntax seems a better choice in general. |
Can I just note that there are noteworthy downsides to just punting on such questions and trying to preserve the concrete syntax.
Do we know how much of a maintenance burden it would be to add a target version for the generated concrete syntax? Most importantly, do we know if it would interact with other configuration options in a multiplicative or additive way? |
4.14+
4.13+
4.11+
4.10+
4.08+
4.06+
4.04+
4.03+
4.02+
|
A related issue is how automatic we want punning to happen vs preserving concrete syntax. For example, ocamlformat is always formatting I don't think there's any advantage to preserving concrete syntax for |
I would be in favor of always using the last available syntax according to the target version (since there is a new option |
I've suggested in the past to preserve as much as possible in fmt_ast and have other pass/tool to rewrite sugars. |
|
Extracted from #630:
@hhugo:
@jberdine:
The text was updated successfully, but these errors were encountered: