News for hackers. Stuff that matters.
Re:Ask HN: Tips for maintaining a C codebase? by dllthomas on Wednesday May 29, 2013 @12:00PM (#5787012)
If you've a bunch of bare integers or floats you're passing around with meaning beyond "number" and you're tempted to wrap them in a typedef to add some readability, consider wrapping in a struct with no additional elements. The compiler will boil it away entirely when it comes time to generate code, but it'll catch it when you mix up the order of arguments to a function and the like.

There are no comments on this comment yet.