News for hackers. Stuff that matters.
Re:Avoid NULL by halayli on Sunday November 08, 2015 @10:18PM (#10531192)
It's more for consistency. You can still forget to use a not_null.
Re:Avoid NULL by johncolanduoni on Sunday November 08, 2015 @10:22PM (#10531198)
Not if you're calling into an API that uses not_null; it will automatically insert the null check.
Re:Avoid NULL by halayli on Sunday November 08, 2015 @11:29PM (#10531397)
My point is that you can easily forget to declare a pointer as not_null and revert back to the old habit of declaring it as int*. The responsibility is still on the programmer.