allowing braces around suites

Delaney, Timothy C (Timothy) tdelaney at avaya.com
Sun Aug 29 20:54:08 EDT 2004


Igor V. Rafienko wrote:

> As a side note -- my last employer had absolutely horrible coding
> conventions. No one liked them (developers and management included).
> However, everyone had to comply, and despite an occasional nastiness,
> the bug that you illustrated could not have happened in that
> environment, because _every_ if was required to have its body within
> braces.

In C/C++/Java, that's a sensible coding convention. I won't quibble that
there may have been other ones in the coding standards that were bad,
but that specific example is not.

In Python, it's a non-issue.

Tim Delaney



More information about the Python-list mailing list