• 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: "No options" constant
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: "No options" constant
      • From: Quincey Morris <email@hidden>
References: 
 >"No options" constant (From: Sixten Otto <email@hidden>)
 >Re: "No options" constant (From: Seth Willits <email@hidden>)
 >Re: "No options" constant (From: Sixten Otto <email@hidden>)

  • Prev by Date: Re: Core Data with ODBC databases?
  • Next by Date: Re: "No options" constant
  • Previous by thread: Re: "No options" constant
  • Next by thread: Re: "No options" constant
  • Index(es):
    • Date
    • Thread