[Python-Dev] Update PEP 7 to require curly braces in C (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Tue Jan 19 00:09:11 EST 2016
- Previous message (by thread): [Python-Dev] Update PEP 7 to require curly braces in C
- Next message (by thread): [Python-Dev] Update PEP 7 to require curly braces in C
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Alexander Walters wrote:
When someone trying to make this argument in #python for Python code... the response is newlines are free.
Well, I disagree. I very rarely put blank lines in a function in any language, because it makes it hard to scan the code visually and pick out the beginnings of functions. So while they may help readability locally, they hurt it globally.
If I find myself needing to put blank lines in a function in order to make it readable, I take it as a sign that the function ought to be split up into smaller functions.
-- Greg
- Previous message (by thread): [Python-Dev] Update PEP 7 to require curly braces in C
- Next message (by thread): [Python-Dev] Update PEP 7 to require curly braces in C
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]