Comment

Comment by guard-of-terra

Exceptions are maddengly, insanely efficient in some settings, such as making a server handling multiple requests at once.

They allow you to confine errors on any single request to that request. Many languages/platforms suggest you to use multiprocessing for that.

Also helps that servers usually have well-understood failure modes (DB error, data validation error, network failure) compared to other kinds of software (e.g. a missing file may lead to a whole investigation there)

For e.g. desktop programming, exceptions are kinda less useful.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton