Sign up Login
home | you | technology | web 2.0 | podcasts | entertainment | photos | comics | videos
 
Latest from Neil Mix
 

nil

Friday, January 23, 2009

Objective-C has a neat little thing called nil, which represents the absence of an object. It’s like null in Java or JavaScript, or NULL in C, but with one important difference: you can call methods on it.

“Bwah?” you say, wondering why that would be a feature rather than a bug. Yes, that was my first reaction too. But after much use, I have decided that it is indeed a feature.

Send a message...


Original article from http://www.neilmix.com/2009/01/22/nil/
Login to read full articles and enjoy our free features for members.
« App Store
The Problem of Trust »
 

Related articles