tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: wedges on vnd(4) patch
On Mon, Jun 21, 2010 at 06:23:02PM -0400, Christos Zoulas wrote:
> Well, I find the different indentation styles typically use for the braces
> clumsy and not following the standard. Or even when they do, they cause the
> code to move too much to the right:
FWIW, I prefer this:
switch (c) {
case 'a':
{
decl;
stmt;
}
break;
}
because I've never liked not indenting the cases and half an indent
seems a good way to do that. But that is also at variance with current
rules.
Whether variables should be at the top of the function or not depends
heavily on how big and complicated the blocks are. (And when they are
big and complicated, splitting each case into its own function is also
not always desirable.)
--
David A. Holland
dholland%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index