Re:NSLogger – a flexible logging tool for OS X and iOS
by Zev on Sunday January 06, 2013 @06:02PM
(#5018135)
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".
[ Parent
| on HN ]
Re:NSLogger – a flexible logging tool for OS X and iOS
by to3m on Sunday January 06, 2013 @06:50PM
(#5018328)
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!
Re:NSLogger – a flexible logging tool for OS X and iOS
by MaxGabriel on Sunday January 06, 2013 @06:05PM
(#5018144)
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.