Re: + initialize docs conflict?
Re: + initialize docs conflict?
- Subject: Re: + initialize docs conflict?
- From: John Stiles <email@hidden>
- Date: Tue, 1 Feb 2005 17:25:59 -0800
On Feb 1, 2005, at 5:17 PM, Simon Robins wrote:
On 2 Feb 2005, at 1:03 am, Bill Cheeseman wrote:
on 2005-02-01 7:05 PM, Ali Ozer at email@hidden wrote:
A static flag means storage, and in addition, to be totally safe,
that
implies a lock to synchronize access. So a little more overhead
overall.
You've convinced me. Thanks.
On the other hand the static flag is thread safe in 10.2+, and is the
singleton pattern which may be more easily recognised by those who
come after you.
Catering to the weaknesses of other programmers doesn't seem like it
promotes best practices to me. I'd rather write the best possible code,
and if they don't understand it, they'd learn something new and
valuable.
The final choice is yours, of course.
_______________________________________________
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