• 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: More Xcode 7 inconsistency?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More Xcode 7 inconsistency?


  • Subject: Re: More Xcode 7 inconsistency?
  • From: Charles Srstka <email@hidden>
  • Date: Wed, 14 Oct 2015 13:12:49 -0500

> On Oct 14, 2015, at 12:02 PM, David Duncan <email@hidden> wrote:
>
> The intended meaning was “the warning (about passing nil) is intended”. The helpful followup is that it is generally encouraged to use empty containers (@[] or @{}) over nil when there is no semantic difference, as is the case for the aforementioned API.

I took it to mean that something was supposed to be logged to the Console if you passed nil to it (which doesn’t happen in my testing). While it's certainly true that @{} is a perfectly fine way to pass an empty set of data to this method, the documentation says that nil is fine, which is an inconsistency. My argument was that either the method signature or the documentation needs to be changed so that they agree with each other.

Charles

_______________________________________________

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


References: 
 >More Xcode 7 inconsistency? (From: Graham Cox <email@hidden>)
 >Re: More Xcode 7 inconsistency? (From: Shane Stanley <email@hidden>)
 >Re: More Xcode 7 inconsistency? (From: Charles Srstka <email@hidden>)
 >Re: More Xcode 7 inconsistency? (From: David Duncan <email@hidden>)

  • Prev by Date: Re: UILabel is maiming my Character
  • Next by Date: Re: CGContextShowTextAtPoint
  • Previous by thread: Re: More Xcode 7 inconsistency?
  • Next by thread: Re: More Xcode 7 inconsistency?
  • Index(es):
    • Date
    • Thread