[OT] Re: [ANN] Cocoa Style for ObjC: 1 and 2
[OT] Re: [ANN] Cocoa Style for ObjC: 1 and 2
- Subject: [OT] Re: [ANN] Cocoa Style for ObjC: 1 and 2
- From: Graham cox <email@hidden>
- Date: Wed, 27 Oct 2004 13:10:56 +1000
On 27/10/2004, at 12:24 PM, Keith Anderson wrote:
Programmers on other platforms are probably wondering how we have
time to think about this stuff. :)
That one made it to my motd file!
yep, a priceless comment :)
On the subject of style, and at the risk of opening a can of worms (god
forbid), can anyone explain to me why in many of the example code Apple
supplies, it has style like this:
-(void)foo:(NSWhatever *)bar{
varname *foobar;
//do stuff
}
as opposed to what I have always done which is this:
- (void) foo: (NSWhatever*) bar
{
varname* foobar;
// do stuff
}
There are lots of small style diffs here, many probably just a matter
of personal preference, particularly with associativity of the *
operator. (I hope they show up as intended on your mail client). But
since whitespace adds readability in spades yet has zero impact on
performance (maybe a very minor one on compile time), I have never
really 'got' the crunched up compacted coding style that many seem to
favour.
But if there's a compelling reason I've just not thought of, I'd love
to hear it!
--Graham
_______________________________________________
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