Hacker News new | past | comments | ask | show | jobs | submit login

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...)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: