3 ms·
Comma is quite useful for compacting cleanup code in abnormal function exits. E.g. from this: if (...) { cleanup(); return -2; } to this if (
by huhtenberg 15y ago
Comma is quite useful for compacting cleanup code in abnormal function exits. E.g. from this:
if (...)
{
cleanup();
return -2;
}
to this
if (...)
return cleanup(), -2;
Linux kernel uses this pattern in several places. However the best comma use is, of course, for messing your enemies' code:
foo,();