Refactoring tools was: Declarations near usage
Refactoring tools was: Declarations near usage
- Subject: Refactoring tools was: Declarations near usage
- From: Keith Ray <email@hidden>
- Date: Wed, 16 Oct 2002 17:41:51 -0700
On Wednesday, October 16, 2002, at 12:37 PM, Scott Anguish wrote:
On Wednesday, October 16, 2002, at 02:48 PM, James Hober wrote:
One thing I don't like about Objective C is that you have to declare
variables at the top of a block. I think code that declares
variables near their first use is much more readable. This is the
norm in C++.
This is also the norm in Objective-C with the latest compiler
(included with 10.2)
Two reasons to put declarations at the same place as first usage
(initialization)
1. if you make a habit of it, it guarantees that variables are always
initialized - bugs from uninitialized variables are nasty.
2. it makes refactoring easier <
http://www.refactoring.com>
Is anyone aware of any refactoring tools for Objective-C++/Cocoa ?
--
C. Keith Ray
<
http://homepage.mac.com/keithray/xpminifaq.html>
<
http://homepage.mac.com/keithray/resume.html>
_______________________________________________
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.