Re: "No options" constant
Re: "No options" constant
- Subject: Re: "No options" constant
- From: Seth Willits <email@hidden>
- Date: Thu, 17 Oct 2013 14:35:19 -0700
On Oct 17, 2013, at 11:55 AM, Sixten Otto wrote:
> On Thu, Oct 17, 2013 at 11:22 AM, Seth Willits <email@hidden> wrote:
>> I would be hesitant to get used to such a constant.
>
> I'll bite: why?
As each API is potentially different from others, it's best to use the constants provided. Using a constant from another API in place of using the explicitly correct literal 0 seems unwise.
It'd be too easy to use that constant incorrectly somewhere on accident, perhaps even in place of the provided Default constant. (It's possible to argue the same thing about 0, but I never write a 0 unless I'm absolutely sure there is no constant and 0 is *the* correct thing to use. It's too easy in my mind to misuse a "universal" constant.)
--
Seth WIllits
_______________________________________________
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