Re: Declarations in middle of C code?!
Re: Declarations in middle of C code?!
- Subject: Re: Declarations in middle of C code?!
- From: Normand Rivard <email@hidden>
- Date: Sun, 4 Jan 2004 23:02:00 -0500
It's not just your HO. Steve McConnell agrees with you in "Code
Complete" (p.181), although he was more referring to variable
initialization rather than variable definition. There is also something
similar in Martin Fowler's "Refactoring".
Style is just that; style. It's up to you. However, I find that code
becomes more readable IMHO when variable declarations are made as close
as possible to where the variables are used.
--
Clark S. Cox III
email@hidden
http://homepage.mac.com/clarkcox3/
http://homepage.mac.com/clarkcox3/blog/B1196589870/index.html
[demime 0.98b removed an attachment of type
application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
____________________________________________________________
"What you do instead of your real work *is* your real work."
- Roger Ebert
____________________________________________________________
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.