Re: NSNull and @""
Re: NSNull and @""
- Subject: Re: NSNull and @""
- From: Ian Joyner <email@hidden>
- Date: Sat, 11 Oct 2008 13:33:57 +1100
On 11/10/2008, at 12:31 PM, Kyle Sluder wrote:
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.
So we must be dependent on testing, which I find compelling like agile
programming, but ultimately very hit and miss.
If it's a strong type system you seek, I suggest you look elsewhere.
Insofar as strong typing helps software correctness, but as such, not
necessarily strong typing. I appreciate the flexibility of dynamic
languages, but one can have this also in strong typing.
Like, somewhere other than desktop Macintosh software development,
Why would I want to do that?
for
which all the popular languages have incredibly weak type systems.
Popular does not necessarily imply good, only democratic.
Ian
_______________________________________________
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