[webkit-dev] Proposing style guide change regarding braces on conditional arms

Dan Bernstein mitz at apple.com
Wed Dec 2 21:57:04 PST 2009


On Dec 2, 2009, at 9:46 PM, Peter Kasting wrote:

> On Wed, Dec 2, 2009 at 9:19 PM, Mark Rowe <mrowe at apple.com> wrote:
> On 2009-12-02, at 21:00, Peter Kasting wrote:
> 
> > I find this tricky to read and error-prone.  I propose that the rule be modified to be:
> >
> > * When all arms of a conditional or loop are one physical line, do not use braces.  If any arms are more than one physical line (even if they are one logical line), use braces on all arms.
> 
> I do not agree that this would be an improvement.
> 
> Are you satisfied with the existing rule, then?  If so, you would be the first developer I have asked who is.

I am satisfied with the existing rule.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20091202/da698765/attachment.html>


More information about the webkit-dev mailing list