Coding practices proposals
Tom Yu
tlyu at MIT.EDU
Fri Mar 18 13:37:49 EDT 2011
Sam Hartman <hartmans at MIT.EDU> writes:
> OK, I find that there are a number of situations where inner scopes make
> code easier to understand.
>
> If you want to push for smaller functions, that's fine, but it seems
> like the best way to do that is to actually have recommendations about
> smaller functions being good, and citing using inner scopes as one sign
> that possibly you need a helper function.
We do already have guidelines for function length and nesting depth.
I was really hoping to avoid making guidelines for the maximum length
of an inner scope block, but maybe it would be a good idea to make
such guidelines.
More information about the krbdev
mailing list