r/ProgrammerHumor • • Sep 13 '23

Meme goDevelopersWillAppreciateIt

Post image
2.4k Upvotes

144 comments sorted by

View all comments

Show parent comment

1

u/Kered13 Sep 13 '23

Exceptions are only expensive when thrown. Typical implementations are faster on the happy path.

1

u/aMAYESingNATHAN Sep 13 '23

Exactly, so you should still use them, but only for exceptional errors. They are not a sole drop in for all error handling.