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/115220.html below:

[Python-Dev] PEP 7 clarification request: braces

[Python-Dev] PEP 7 clarification request: braces [Python-Dev] PEP 7 clarification request: bracesRaymond Hettinger raymond.hettinger at gmail.com
Mon Jan 2 09:47:14 CET 2012
On Jan 1, 2012, at 8:44 PM, Nick Coghlan wrote:

> I've been having an occasional argument with Benjamin regarding braces
> in 4-line if statements:
> 
>  if (cond)
>    statement;
>  else
>    statement;
> 
> vs.
> 
>  if (cond) {
>    statement;
>  } else {
>    statement;
>  }


Really?  Do we need to have a brace war?
People have different preferences.
The standard library includes some of both styles
depending on what the maintainer thought was cleanest to their eyes in a given context.


Raymond

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