4 ms·
Wouldn't it have been better for the language itself to have made a decision rather than another group of people who are in the business of having strong, enfor
by raymondh 4y ago
Wouldn't it have been better for the language itself to have made a decision rather than another group of people who are in the business of having strong, enforced decisions about what is allowed?
The language specifies that simple statements can be separated by semicolons. Black eliminates this part of the language, essentially overriding Guido's decision.
The language specifies that four different quoting characters are available. Black eliminates this part of the language, mandating double quotes in code and single quotes in a repr output, essentially overriding Guido's decision.
The language specifies that in-line comments can start anywhere on a line. Black eliminates the writer's option to line-up their comments vertically, essentially overriding Guido's language decision.
The language allows and PEP 8 encourages using whitespace to aid readers in reading mathematical expressions just like sympy and LaTex do: ``3x*2 - 2x +5``. Black eliminates this possibility and mandates equal spacing regardless of operator precedence: ``3 * x * 2 - 2 * x + 5``. Once again, this overrides Guido's judgment.
Wouldn't be better for Guido to decide what the language allows rather than have a downstream tool narrow the range of what is possible?
- digisign 4y agoYes, and I'm looking forward to blue, and have used nero as well before I knew blue existed. Like the idea of black, and implementation, but its "taste" unfortunately leaves a bit to be desired. Pushing extra spaces into slices is another one I don't care for.