Hacker News new | ask | show | jobs
by Zev 4911 days ago
The project itself is the only thing that uses the NS prefix. The classes within the project have the (rather long and safe) prefix of "Logger".
2 comments

It's not really a prefix, though, because there's a struct called "Logger", and there are some enums that begin with 'k', and there's a #define called "ALLOW_COCOA_USE", just like something somebody might put in their own code.

If you're writing a library, you really need to prefix absolutely every last stupid symbol, right down to the header include guards. If you don't, even if they don't end up conflicting with something, you'll have people like me moaning about it. (But I don't moan about it because it's never caused me a problem in the past.)

Looks like a neat library though!

I agree with Zev on this. There's no harm if the code itself doesn't use the `NS` prefix -- the concern in the rest of the comments is overblown.