== Quote from Jonathan M Davis (jmdavisp...@gmail.com)'s article
> For logic errors, efficiency isn't really an issue, since they
> shouldn't be happening. If they are, go fix your code and it won't
> be an issue.

That gets less true as the cost of a try block goes up.  Even if logic
errors never occur, the infrastructure to check for them costs you
something.  Ever compared the performance of a program w/ and w/o
trys?

So, would you advocate for exceptions as the sole error reporting
mechanism?  Return values are just for valid result values and
everything else is an exception?  Where do you personally draw the
line?

Jason

Reply via email to