Re: [gamin] Re: gam_node.c cleanup



Daniel Veillard wrote:
  However I'm a bit uneasy with transforming casual return handling in case
of NULL parameters, sometimes it's just cumbersome to test NULL and having
the server exit for a perfectly recoverable reason can be just nasty. Such
an assert generated for example a number of "gam_server existed" bug report
it was good in that it allowed to chase the problem, it was bad in the
sense it made runtime hard for all users !

Why?  Asserts should compile to nothing in production code.
It's only in debug builds (which users never see)
that assert should actually do anything.
- Dan



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]