Re: Warnings that won't go away
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