Coding practices proposals

Sam Hartman hartmans at MIT.EDU
Fri Mar 18 06:50:59 EDT 2011

You've convinced me that the inner scope example is the only one worth

>>>>> "Greg" == Greg Hudson <ghudson at MIT.EDU> writes:


    Greg> That may be one of the more controversial documented
    Greg> practices.  Personally, I think grouping cleanup code together
    Greg> is compelling enough to argue against inner scope declarations
    Greg> for owner pointers.

Hmm.  I'd like to propose dropping the recommendation against inner
scope variables and the requirement to clean up owner pointers in the
top-most scope in this case.

I think a lot of my bias here is from c++, where I've seen a lot of
advantages to declaration near use.
I understand that there are significant cleanup advantages to c++ that
don't apply here.

More information about the krbdev mailing list