4 ms·
> The reason a formatter exists is to make all codebases look consistent I'm not how this is related to not having any knobs to tune. Aren't there many ways fo
by closed 7y ago
> The reason a formatter exists is to make all codebases look consistent
I'm not how this is related to not having any knobs to tune. Aren't there many ways for code to be consistent with pep8? Isn't advocating for only one version of pep8-consistent code in essence an attempt to supercede pep8?
- dewey 7y agoThey are most likely talking about the codebase being consistent within a company / project. Not consistent with pep8. If there are no knobs to turn (like in gofmt) everyone just has the same settings and you don't have to make sure everyone sets the knobs to the same values.
- zzzeek 7y agoBlack formats to a subset of pep8 so I guess it's an attempt to "subcede" pep8.
- closed 7y agoI think that thing X superceding thing Y is equivalent to thing Y subceding to thing X. In this case, if black becomes the standard for defining appropriate style then it is superceding pep8 as the standard for style (many styles consistent with pep8 are not black outputs, so if black's style becomes mandatory, it is a ruling against these previously accepted alternatives).