Hacker News new | ask | show | jobs
by branko_d 1342 days ago
> doesn't cause much performance overhead

Exceptions are slow when thrown.

If an error happens rarely, the corresponding exception is thrown rarely, so the performance impact is minimal.

OTOH, if an error can happen frequently, it is no longer "exceptional", and so is probably better handled without exceptions anyway.