On Oct 17, 2013, at 11:55 AM, Sixten Otto wrote:

> On Thu, Oct 17, 2013 at 11:22 AM, Seth Willits <sli...@araelium.com> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to