On Wed, May 11, 2011 at 2:41 PM, Russell Bryant
<russell(a)russellbryant.net> wrote:
On Wed, May 11, 2011 at 3:07 AM, Radek Novacek
<rnovacek(a)redhat.com> wrote:
> * Switch statement:
> Cases have same indentation as switch. Body of cases is indented. Opening and
> ending brace of switch are on separate lines.
>
> switch (expression)
> {
Personally I like everything you proposed except I like putting the {
on the same line as switch. I don't care that much, though. +1.
agreed.
the only other comment i'd make is regarding:
x = a + b * c;
I would prefer we did not rely on operator precedence and made the
intent unambiguous by using brackets.
Ie.
x = a + ( b * c );
This would be fine though:
x = a + b - c;
--
Russell Bryant
_______________________________________________
Matahari mailing list
Matahari(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/matahari