• 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: NSNull and @""
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSNull and @""


  • Subject: Re: NSNull and @""
  • From: "Kyle Sluder" <email@hidden>
  • Date: Fri, 10 Oct 2008 21:31:53 -0400

On Fri, Oct 10, 2008 at 8:40 PM, Ian Joyner <email@hidden> wrote:
> I'm just trying to work out what NSNull really is in the Cocoa context. Is
> it an object in Cocoa? I think (from other environments) that it is a type
> signifying "no object". Since NSNull may be a "valid" value of any other
> type, is it counted as a subtype of every other type (hence the ultimate
> subclass)? I think a good and simple (one that doesn't make my brain hurt)
> definition of NSNull is important in order to ensure software correctness.

The type system can, and often must, be willingly ignored, so you
can't rely on it to demonstrate anything about your program's
correctness.

If it's a strong type system you seek, I suggest you look elsewhere.
Like, somewhere other than desktop Macintosh software development, for
which all the popular languages have incredibly weak type systems.

--Kyle Sluder
_______________________________________________

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: NSNull and @""
      • From: Ian Joyner <email@hidden>
References: 
 >NSNull and @"" (From: DKJ <email@hidden>)
 >Re: NSNull and @"" (From: Seth Willits <email@hidden>)
 >Re: NSNull and @"" (From: Ian Joyner <email@hidden>)

  • Prev by Date: Re: NSNull and @""
  • Next by Date: Re: inconsistent float behaviour
  • Previous by thread: Re: NSNull and @""
  • Next by thread: Re: NSNull and @""
  • Index(es):
    • Date
    • Thread