• 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: Programming Style: Method Definition with or without a semicolon.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programming Style: Method Definition with or without a semicolon.


  • Subject: Re: Programming Style: Method Definition with or without a semicolon.
  • From: Robert Tillyard <email@hidden>
  • Date: Fri, 16 Oct 2009 03:32:14 +0100

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


  • Follow-Ups:
    • Re: Programming Style: Method Definition with or without a semicolon.
      • From: Symadept <email@hidden>
References: 
 >Programming Style: Method Definition with or without a semicolon. (From: "Frederick C. Lee" <email@hidden>)
 >Re: Programming Style: Method Definition with or without a semicolon. (From: Graham Cox <email@hidden>)
 >Re: Programming Style: Method Definition with or without a semicolon. (From: Roland King <email@hidden>)

  • Prev by Date: Re: Programming Style: Method Definition with or without a semicolon.
  • Next by Date: Re: Programming Style: Method Definition with or without a semicolon.
  • Previous by thread: Re: Programming Style: Method Definition with or without a semicolon.
  • Next by thread: Re: Programming Style: Method Definition with or without a semicolon.
  • Index(es):
    • Date
    • Thread