[Python-ideas] AMEND PEP-8 TO DISCOURAGE ALL CAPS
Anders Hovmöller
boxed at killingar.net
Fri Jan 4 18:05:03 EST 2019
> Do you not have/use syntax highlighting? If not, why not? There's a right and wrong tool for everything. In the case of visually differentiating various kinds of code entities, the IDE is the right tool, all caps is not.
This is an argument against:
- the line length limit (because the IDE should just soft break lines in a super nice way)
- explicit “self.” (swift does this with syntax highlighting for example)
- CamelCase for classes/types (actually python does a bad job here anyway with int, str, datetime, etc)
I’m not saying I disagree but we should be aware that this is the argument.
(and as ChrisA rightly points out it’s not fully applicable to constants anyway)
/ Anders
More information about the Python-ideas
mailing list