Re: Programming Style: Method Definition with or without a semicolon.
Re: Programming Style: Method Definition with or without a semicolon.
- Subject: Re: Programming Style: Method Definition with or without a semicolon.
- From: Symadept <email@hidden>
- Date: Fri, 16 Oct 2009 10:39:24 +0800
Hi Rols,
The same happened to me once. Accidently part of copy paste from header to
.m, it happened that structure. But why Objective C compiler won't give any
error for this. Really frustrating.
Regards
Mustafa
On Fri, Oct 16, 2009 at 10:32 AM, Robert Tillyard <email@hidden>wrote:
> I keep meaning to file an enhancement request for the space before ()'s, I
> have to go back and manually change every occurrence and then add spaces
> after the commas in the function arguments.
>
> I also prefer
>
> - (void)foo
> {
> }
>
> over
>
> - (void)foo {
> }
>
> Regards, Rob.
>
>
> On 16 Oct 2009, at 02:30, Roland King wrote:
>
> I'm ploughing it with you, I hate it too and spend 30 seconds every time I
>> let XCode stub out a function for me moving the brace onto the correct line,
>> andputtingspacesbackbetweenparanetheses,bracketsandarguments so I have a
>> hope in hell of reading the code later.
>>
>> I came across that trailing ';' thing the other day purely by accident and
>> couldn't believe my code actually worked.
>>
>> I think I'll take this over to XCode and ask about it.
>>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden