[Python-Dev] Update PEP 7 to require curly braces in C (original) (raw)

Brett Cannon brett at python.org
Sun Jan 17 17:19:52 EST 2016


On Sun, 17 Jan 2016, 13:59 Ethan Furman <ethan at stoneleaf.us> wrote:

On 01/17/2016 11:10 AM, Brett Cannon wrote:

> https://www.imperialviolet.org/2014/02/22/applebug.html. Skipping the > curly braces is purely an aesthetic thing while leaving them out can > lead to actual bugs. Not sure what that sentence actually says, but +1 on making them mandatory.

Yeah, bad phrasing on my part. What I meant to say is leaving them off is an aesthetic thing while requiring them is a bug prevention thing. When it comes to writing C code I always vote for practicality over aesthetics.

-- Ethan


Python-Dev mailing list Python-Dev at python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/brett%40python.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20160117/91fbf5c5/attachment.html>



More information about the Python-Dev mailing list