Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Except that with a proper namespacing solution, you just declare that you want Foundation's Array in one spot, and in the rest of the file you just write Array. With NSArray, it's NSThis and NSThat and NSBlah and NSFoo and NSBar and NSNSNSNSNSNSNS everywhere.


That's an interesting point. I've never done that (only an amateur at ruby) with a class before besides #defines, which just feels like bad juju.

Another good thing about the Obj-C de facto way is that you can immediately tell what a class is vs seeing String string




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: