• 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: Warnings that won't go away
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Warnings that won't go away


  • Subject: Re: Warnings that won't go away
  • From: j o a r <email@hidden>
  • Date: Wed, 30 Nov 2005 17:07:08 +0100


On 30 nov 2005, at 15.43, Daniel Jalkut wrote:

Some people are more aggressive about "unloading" the header files. Me, I am lazy and I have a fairly fast compiler. I tend to #import in the header until and unless problems arise. I consider doing otherwise to be "premature optimization," because it takes work to figure out which @class declarations to make, while one #import will often take care of several classes in one swoop.

I think that it's more interesting to focus on the conceptual benefits of reducing dependencies via data hiding, than to think about how it will affect performance.


But regardless, my recommendation would actually be almost reversed:

1) Only #import what you have to, and
2) If you're in a header file, never use #import when you can use @class


j o a r


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

  • Follow-Ups:
    • Re: Warnings that won't go away
      • From: Daniel Jalkut <email@hidden>
References: 
 >Warnings that won't go away (From: Tom Jones <email@hidden>)
 >Re: Warnings that won't go away (From: Sherm Pendley <email@hidden>)
 >Re: Warnings that won't go away (From: Tom Jones <email@hidden>)
 >Re: Warnings that won't go away (From: Daniel Jalkut <email@hidden>)

  • Prev by Date: Re: Finding the error...
  • Next by Date: Re: Finding the error...
  • Previous by thread: Re: Warnings that won't go away
  • Next by thread: Re: Warnings that won't go away
  • Index(es):
    • Date
    • Thread