Latest from Neil Mix
- Solve the right problem
- It takes guts to do that
- Please stop whining about App Store review
- Redacted?!?
- iPhone Cool Projects
- WWDC 2009
- Protocol Inheritance in Objective-C
- The Problem of Trust
- nil
- App Store
- Pandora for iPhone version 2.0
- Awards
- Podcast Interview on Mobile Orchard
- Mobile Orchard
- Harmony
- The Ajax Experience
- Overwhelmed
- Programming Language in a Web Page: The Conundrum
- Chess and Politics
- Winter Daze
- Your Facebook Profile Doesn’t *Really* Matter, Does It?
- Projects
- Beyond DOM
- About Me
- Disphoria
nil
Friday, January 23, 2009Objective-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.
Related articles
feedraider "We Eat Internets" v2.0 a LAMP production by Jussi Vaihia
© 2006-2009 |
about |
blog |
help