Re: [PING][RFC] Assertions as optimization hints

2016-11-28 Thread Yuri Gribov
On Mon, Nov 28, 2016 at 4:03 PM, Vincent Lefevre wrote: > On 2016-11-23 16:03:44 +, Yuri Gribov wrote: >> Definitely, aggressively abusing assertions like this should be a >> per-project decision. E.g. I've seen code which parallels assertions >> with error checking i.e. something like >> FI

Re: [PING][RFC] Assertions as optimization hints

2016-11-28 Thread Vincent Lefevre
On 2016-11-23 16:03:44 +, Yuri Gribov wrote: > Definitely, aggressively abusing assertions like this should be a > per-project decision. E.g. I've seen code which parallels assertions > with error checking i.e. something like > FILE *p = fopen(...); > assert(p); // Quickly abort in debug m