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

if (False) goto error;

vs.

if (False) throw ExceptionE;




Ehem

   if(False) longjump(error, 1);

   vs

   if (False) throw ExceptionE;


Good job, compiler :)


You highlighted in this comparison why I hate exception handling in OOP languages, and just generally the common practices prescribed for handling errors.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: