Comment

Comment by nicoburns

The worst thing about exceptions is that you can't tell from the type signature of a function whether it might throw one. So you have to hope it's documented, guess at whether try-catch is necessary, or reading through the entire call stack.

I personally much prefer Rust style Result which also can't be ignored, and puts fallibili5y in the function signature.

parent nicoburns 3 months ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton