[Python-Dev] PEP 7 clarification request: braces
Ethan Furman
ethan at stoneleaf.us
Tue Jan 3 19:42:43 CET 2012
Stephen J. Turnbull wrote:
> Matt Joiner writes:
>
> > Readability is the highest concern, and this should be at the
> > discretion of the contributor.
>
> That's quite backwards. "Readability" is community property, and has
> as much, if not more, to do with common convention as with some
> absolute metric. The "contributor's discretion" must yield.
Readability also includes more than just the source code; as has already
been stated:
if(cond) {
stmt1;
+ stmt2;
}
vs.
-if(cond)
+if(cond) {
stmt1;
+ stmt2;
+}
I find the diff version that already had braces in place much more readable.
~Ethan~
More information about the Python-Dev
mailing list