A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2012-January/115280.html below:

[Python-Dev] PEP 7 clarification request: braces

[Python-Dev] PEP 7 clarification request: braces [Python-Dev] PEP 7 clarification request: bracesBenjamin Peterson benjamin at python.org
Wed Jan 4 00:17:56 CET 2012
Ethan Furman <ethan <at> stoneleaf.us> writes:
> 
> 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.

There are much larger problems facing diff readibility. On your basis, we might
as well decree that code should never be arranged or reindented.

Regards,
Benjamin




More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4