[webkit-dev] style question for empty for loops
Darin Adler
darin at apple.com
Thu Aug 26 11:49:39 PDT 2010
On Aug 26, 2010, at 11:35 AM, Chris Fleizach wrote:
> for (...; ...; ...) { }
This seems OK.
> for (...; ...; ...)
> { }
The above is definitely not allowed, because braces go on the line with the "for".
The other possibilities are:
C)
for (...)
;
D)
for (...) {
}
E)
for (...) {
// intentionally-empty loop body.
}
I would probably use (C) in code I was writing. This doesn’t come up much.
-- Darin
More information about the webkit-dev
mailing list