• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Refactoring tools available for Cocoa / ObjC?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Refactoring tools available for Cocoa / ObjC? (From: "Eric Lin" <email@hidden>)
 >Re: Refactoring tools available for Cocoa / ObjC? (From: Marcel Weiher <email@hidden>)
 >Re: Refactoring tools available for Cocoa / ObjC? (From: "Eric Lin" <email@hidden>)
 >Re: Refactoring tools available for Cocoa / ObjC? (From: Ondra Cada <email@hidden>)
 >Re: Refactoring tools available for Cocoa / ObjC? (From: "Eric Lin" <email@hidden>)

  • Prev by Date: Re: NSTokenField, how to query the selection?
  • Next by Date: Re: NSTokenField, how to query the selection?
  • Previous by thread: Re: Refactoring tools available for Cocoa / ObjC?
  • Next by thread: Re: Refactoring tools available for Cocoa / ObjC?
  • Index(es):
    • Date
    • Thread