You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to add an option that would maintain absence of whitespace around binary operations?
Examples where this might come up in a code base:
Keep [1/2, 1/3, 0] instead of [1 / 2, 1 / 3, 0].
Keep x + y*z instead of x + y * z.
Keep f(R; N=2k+1) instead of f(R; N=2k + 1).
Misleading cases would also be allowed, e.g., keep x+y * z instead of x + y * z.
There was some previous related discussion but I'm wondering if the approach described in this Issue is easier to implement?
The text was updated successfully, but these errors were encountered:
kbarros
changed the title
Feature request: maintain absence whitespace around binary operations
Feature request: maintain absent whitespace around binary operations
Nov 27, 2023
This is what I always wanted in a code formatter. Currently, the extra spaces make the code more difficult to read. Perhaps, a operators black-list could be implemented.
Is it possible to add an option that would maintain absence of whitespace around binary operations?
Examples where this might come up in a code base:
[1/2, 1/3, 0]
instead of[1 / 2, 1 / 3, 0]
.x + y*z
instead ofx + y * z
.f(R; N=2k+1)
instead off(R; N=2k + 1)
.Misleading cases would also be allowed, e.g., keep
x+y * z
instead ofx + y * z
.There was some previous related discussion but I'm wondering if the approach described in this Issue is easier to implement?
The text was updated successfully, but these errors were encountered: