News for hackers. Stuff that matters.
Re:The Ten Commandments for C Programmers (Annotated Edition) by pornel on Saturday November 06, 2010 @01:58PM (#1877373)
That doesn't work if you expect struct or array at 0.

IMHO a better solution is to have a type system that has non-NULLable types, and/or use language that inserts NULL checks automatically (and optimizes them away where they're redundant).

Re:The Ten Commandments for C Programmers (Annotated Edition) by lisper on Saturday November 06, 2010 @02:07PM (#1877393)
> That doesn't work if you expect struct or array

Ah, good point.