News for hackers. Stuff that matters.
Re:Show HN: C library of generic, reference-counted data str... by mappu on Saturday June 15, 2013 @04:07AM (#5884481)
Was there a rationale to choosing performActionOnStruct() names instead of the perhaps-more-idiomatic struct_perform_action() style?

I strongly advise against putting identifiers like release() and getCString() in the global namespace, that's probably not the wisest idea if you plan to use libraries other than your own.

Re:Show HN: C library of generic, reference-counted data str... by theck01 on Saturday June 15, 2013 @10:28AM (#5885096)
Some bad habits from Java are the only reason. I thought about having obrelease and obgetCString. Putting ob at the beginning of every function seems like overkill, and I don't like that only some functions had would have ob at the beginning if I didn't do a global name change. Any suggestions?
Re:Show HN: C library of generic, reference-counted data str... by mappu on Sunday June 16, 2013 @03:55AM (#5887806)
> Putting ob at the beginning of every function seems like overkill

That's "C-style namespaces" - really the only sane way to avoid an identifier collision, sorry.