
14 Nov
2013
14 Nov
'13
12:07 a.m.
On 13 November 2013 23:20, Johan Engelen <jbc.engelen@...2592...> wrote:
One comment: don't sprinkle g_asserts everywhere, where we can also nicely deal with the ptr being NULL.
Sure... I agree entirely. Also, it's worth noting that assertions should only be used in places where it is *logically impossible* for anything else to happen. I.e., they aren't really supposed to be used as runtime error checks... more as a kind of documentation.
AV