• 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: Quincey Morris <email@hidden>
  • Date: Thu, 17 Oct 2013 15:15:34 -0700

On Oct 17, 2013, at 14:35 , Seth Willits <email@hidden> wrote:

> It's too easy in my mind to misuse a "universal" constant.

Yeah. It seems to me there are two prime reasons to use a specific constant:

1. Apple's SDKs are gradually moving towards using enums that can be (somewhat) type-checked at compile time.

2. You can search source code for "all the places where I've used options from this group" more reliably.

_______________________________________________

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: Sixten Otto <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>)
 >Re: "No options" constant (From: Seth Willits <email@hidden>)

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