-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Concentrate formatter changes in next release #13002
Comments
An alternative could be to add each as opt-in, and at some point turn them all by default |
Considering that the 1.8 release is approaching soon and we have had no progress on any other changes, it's probably best to delay the release of formatter changes. We should disable the changes from #12951 by default for 1.8. |
Let's add a |
The formatter does not actually support |
Yeah, I was planning to first implement it with an internal flag only. This allows us to keep the specs running. We can still consider exposing it in the CLI, but that would be a separate step. But let's continue this thread in a separate discussion, this issue should be about coordinating formatter changes, not implementation details. |
If we have multiple formatter changes but they are still not enough, do we have just a single flag for all of them, or individual flags? If it's the former it could be |
I was thinking in just one flag |
Specific flags have some use internally as it clearly denotes what parts of the code belong to that feature. That's how #13215 works. |
In #14158 (comment) @Blacksmoke16 brought up that we probably shouldn't wait for all these issues to be fixed. I'm not sure what should drive the decision to enable all pending formatter changes. #12951 for example has been merged for a year now. I think it outta be time for it to actually roll out. I wouldn't want to do this for 1.11 though because we're already in the freeze period. |
We're frequently merging formatter changes, but usually it's tiny bug fixes for edge cases that don't affect much code.
With #12951 we have a formatter change in the development branch that will affect quite a lot of code bases.
I think it would be a good chance to introduce other impactful formatter changes in the same release. This would concentrate these changes in a single release and users don't need to constantly reformat their code bases. It's easier to do all changes A, B, C all in one go for release 1.8 instead of A in 1.8, B in 1.9 C in 1.10 etc.
These are some formatter changes pending implementation that I could find in the issue tracker:
-
relative to**
#12999Char
andString
literals #11478 (experimental)for
loops in macros #12168when
blocks) #4360Ready for enabling
&
to yielding methods without a block parameter #12951 (-Dmethod_signature_yield
)-Ddef_trailing_comma
)ProcLiteral
s #14209 (-Dproc_literal_whitespace
)We probably won't be able to address all for the next release, but we should try to focus at least on some of them.
The text was updated successfully, but these errors were encountered: