Hacker News new | ask | show | jobs
by goalieca 2962 days ago
if (False) goto error;

vs.

if (False) throw ExceptionE;

2 comments

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.