4 ms·
No exceptions? What a conondrum I find myself faced with... What about this snippet: if (error_return) { printf("My error"); return; }
by joshguthrie 14y ago
No exceptions? What a conondrum I find myself faced with...
What about this snippet:
if (error_return) {
printf("My error");
return;
}
Clearer than a goto, no? And see, no exceptions ma'!
(Oh yeah, and longjmp/setjmp are the worst ideas in the world...)