ObjC method syntax (was: Re: cocoa-dev digest, Vol 2 #3738 - 11 msgs)
ObjC method syntax (was: Re: cocoa-dev digest, Vol 2 #3738 - 11 msgs)
- Subject: ObjC method syntax (was: Re: cocoa-dev digest, Vol 2 #3738 - 11 msgs)
- From: Allan Odgaard <email@hidden>
- Date: Wed, 25 Feb 2004 18:14:10 +0100
On 25. Feb 2004, at 13:42, Glen Low wrote:
Another thing, hopefully not further adding fuel to another language
war, on the topic of ease of syntax...
The [ ] call syntax of ObjC still bugs me. Suppose I want to call
method alloc, so I start typing: [...]
I couldn't agree more! I too often face this problem, and I think it is
a classic.
I have considering automating inserting the start bracket if it is
missing. The only problem is that if we write:
[obj1 msg] msg:[obj2 msg] msg:something]
It would not be able to know where to place the start bracket.
Sometimes it would be possible to know it based on object types (and
which methods they implement), but probably not in most of the cases --
I was thinking it best just to insert it as far away as possible, as
that would require the most crsr movements to do manually, and thus
would generally be of more value (and statistically I would also think
that this is generally where one most often omits it) -- a friend of
mine suggested allowing to cycle through positions e.g. with escape, I
don't know how well that will work (but it is worth a shot).
I know this is rather off topic, but ideas (for heuristics) would be
welcome, perhaps just as a private follow up :)
_______________________________________________
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.