Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's not like the Zig compiler will refuse to compile unformatted code, either.

And the vast majority of Python code was written before Black was a thing. However, once it appeared, it spread through the ecosystem very quickly. At this point I wouldn't be surprised if most people using Black don't even know that they do so simply because they write their Python in VSCode, which suggests Black (and will install it for you) if you try to do Format Document or enable format-on-save.



> It's not like the Zig compiler will refuse to compile unformatted code, either.

I mean... the use of tabs or LF+CR / CR line endings was a compiler error, last I checked. So, yes, it is exactly like that. And this was a deliberate choice to introduce friction for people who don't hew to the author's stylistic preferences.

> However, once it appeared, it spread through the ecosystem very quickly.

Uh huh, sure, a trendy hipster linter that appeared in 2019 is now so standard that Python code is nigh unthinkable without it. We marvel in the museums at what Python used to look like! There will definitely not be another trendy hipster linter in a couple of years with totally different opinions! :P




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: