[Python-ideas] AMEND PEP-8 TO DISCOURAGE ALL CAPS
Łukasz Stelmach
steelman at post.pl
Sat Jan 5 05:00:52 EST 2019
Dnia January 5, 2019 12:09:44 AM UTC, Abe Dillon <abedillon at gmail.com> napisał(a):
>> The whole point of the all-caps globals is to tell you a lot about what
>> they are.
>
> A lot? The only thing it canonically tells you is to not modify it
It also tells anyone, who is browsing a code, which values come from a spec of some kind (e.g. network protocols, file formats etc.)
> which is my default assumption with any variable I didn't declare myself
It has been quite some time since I have learnt to avoid arguments like "I can do it, can everynoe else", because they are false.
I like ALL_CAPS and other typographic clues, because I do a lot of integration work and I don't use IDE to browse every file I need to read.
--
Łukasz Stelmach z podróży
More information about the Python-ideas
mailing list