[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/sys/fs/tmpfs
On Fri, May 13, 2011 at 06:37:53PM +0100, Mindaugas Rasiukevicius wrote:
> Generally - C99 is encouraged. However, I disagree that variables
> should be declared in the middle of context (for a minimum scope),
> unless there is a *clear* benefit. Otherwise, it makes code harder
> to read, especially if code fragment is long and/or complex.
The "i" in "for (int i=0; i<n; i++)" isn't in the middle of a context;
it's at the beginning of the for loop's context.
so it should really be considered as a different case from other
David A. Holland
Main Index |
Thread Index |