• 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: Why can't I name a property `tag'?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why can't I name a property `tag'?


  • Subject: Re: Why can't I name a property `tag'?
  • From: Graham Cox <email@hidden>
  • Date: Fri, 11 Jul 2008 01:26:43 +1000

At some point you have to realise that it's a compiler, a very dumb finite state machine. It can't intelligently recognise every possible nuance of your code. I agree it's not good behaviour - in my case it caused a bug that corrupted memory that crashed the program in a completely unrelated place, and took me 11 hours to find the real cause.

One thing you could do is to unravel that big compound statement somewhat and explicitly type some intermediate variables. This not only makes the code more readable, but any warnings that the compiler can offer will be more obvious. There's no real performance advantage to huge compound statements, and they definitely make code harder to read at times.

Graham



On 11 Jul 2008, at 1:19 am, an0 wrote:

However, if you don't know what exact type of Cocoa I am, how could
you call me BlackCocoa so surely?

_______________________________________________

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: Why can't I name a property `tag'?
      • From: Matt Burnett <email@hidden>
    • Re: Why can't I name a property `tag'?
      • From: an0 <email@hidden>
References: 
 >Why can't I name a property `tag'? (From: an0 <email@hidden>)
 >Re: Why can't I name a property `tag'? (From: Graham Cox <email@hidden>)
 >Re: Why can't I name a property `tag'? (From: an0 <email@hidden>)
 >Re: Why can't I name a property `tag'? (From: "I. Savant" <email@hidden>)
 >Re: Why can't I name a property `tag'? (From: an0 <email@hidden>)
 >Re: Why can't I name a property `tag'? (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Why can't I name a property `tag'? (From: an0 <email@hidden>)

  • Prev by Date: Re: Any good advice for naming parameters of init methods?
  • Next by Date: Re: Receive notifications about frontmost application change
  • Previous by thread: Re: Why can't I name a property `tag'?
  • Next by thread: Re: Why can't I name a property `tag'?
  • Index(es):
    • Date
    • Thread