On Fri, Feb 22, 2013 at 2:35 PM, Julien Chaffraix <[email protected]>wrote:
>
> over several reviews, I have been saying that the following line is a
> coding style violation:
>
> firstVariable = secondVariable = 0;
>
> For a concrete example, the computePreferredLogicalWidths uses the
> following pattern:
>
> minWidth = maxWidth = max<int>(minWidth, tableLogicalWidth.value());
>

I personally prefer
    maxWidth = max<int>(minWidth, tableLogicalWidth.value());
    minWidth = maxWidth;
over:
    minWidth = maxWidth = max<int>(minWidth, tableLogicalWidth.value());

The reason is simply that it is the style widely used today (and it is
easier to follow).
Like you, I believe this is already covered by "Each statement should get
its own line." in the style.

Cheers,
Benjamin
_______________________________________________
webkit-dev mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-dev

Reply via email to