On 06/26/2012 02:03 AM, Akim Demaille wrote:
> I find avoiding assert useless and actually painful.

For tests it doesn't matter and I have no objection.

For production code, 'assert' typically bloats the code
compared to 'abort'.  It's easy enough, if you prefer
the the 'assert' style, to define an 'assert'-like function
of your own,  That is cleaner than a macro anyway, since
it doesn't have the problem of changed behavior
when you compile with -DNDEBUG.

Reply via email to