Re: Refactoring tools available for Cocoa / ObjC?
Re: Refactoring tools available for Cocoa / ObjC?
- Subject: Re: Refactoring tools available for Cocoa / ObjC?
- From: Ondra Cada <email@hidden>
- Date: Tue, 2 May 2006 22:55:58 +0200
Eric,
[speaking of run-time analysis]
On 2.5.2006, at 22:47, Eric Lin wrote:
That can be done as a hint (and may even perhaps be useable as such),
but you'd have to keep remembering that it's no more than a hint (for
actually each time the program runs the returned value *can* be of a
different class).
Or perhaps what could be done in such ambiguous case is to simply
point out the ambiguity to the developer, and ask the developer to
manually refactor. This is acceptable (to me at least) given that the
number of ambiguous cases is rare.
The trick is that not only they are not rare -- they are the *only*
cases. There are no other ones, at all.
You can run a program a zillion times, getting always, say, NSString
as a return value of something. Zillion plus one, you gen NSNumber.
Still the program may be perfectly right. Or may not, since it
*should* have returned NSNumber at the 154687548th attempt, istead of
the 2451335441st attempt it actually did.
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden