[Python-ideas] PEP 505 (None coalescing operators) thoughts

Chris Barker chris.barker at noaa.gov
Tue Sep 29 17:36:27 CEST 2015


On Mon, Sep 28, 2015 at 12:47 PM, Sven R. Kunze <srkunze at mail.de> wrote:

> I've seen experienced coworkers rather adding superfluous pairs of
> parentheses just to make sure or because they still don't know better.


nothing wrong with superfluous parentheses -- it makes it clear and it's
more robust in the face of refactoring.

It fact, my answer to "precedence could be confusing here" is "use an extra
parentheses and don't worry about it."

-Chris

-- 

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150929/95cdff73/attachment.html>


More information about the Python-ideas mailing list