Re: Code Completion
Re: Code Completion
- Subject: Re: Code Completion
- From: Christian Longshore Claiborn <email@hidden>
- Date: Thu, 6 Mar 2003 11:39:42 -0800
This is not a problem unique to Objective-C; Java has essentially the
same concept (everything derives from Object), and in such a case (for
example, when pulling an Object out of a collection without a direct
cast), code completion would be equally useless.
That said, there are plenty of times when I know exactly what I'm
tossing around to various functions, and when code completion (even
just scanning the member tables of the class and its parents) would be
quite useful. Maybe you write a lot of code like:
id x = [[NSMutableArray alloc] initWithCapacity:20];
[x addObject:blah];
but those of us who statically type our variables for clarity's sake
could use it.
Hell, I need to cast my variables half the time so that the compiler
can figure out which compare: to use, for example.
Christian
On Thursday, March 6, 2003, at 09:10 am, Chris Hanson wrote:
What should code completion do in this case? My insertion point is at
the underscore (_):
- (void)foo:(id)argument
{
id x = [foo _
It's a serious question.
Yes, code completion where all types are known *could* be nice, but
thanks to Objective-C's dynamic typing and the different development
techniques that this leads to, I see code completion getting in the
way and breaking my flow just as much as it helps. I fully see the
utility of code completion in statically-typed languages like C++ and
Java.
-- Chris
--
Chris Hanson, bDistributed.com, Inc. | Email: email@hidden
Custom Application Development | Phone: +1-847-372-3955
http://bdistributed.com/ | Fax: +1-847-589-3738
http://bdistributed.com/Articles/ | Personal Email: email@hidden
_______________________________________________
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.
_______________________________________________
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.