Comment

Comment by john567

Why do we need to have ambient control flow? This is what exception handling is, it's a hidden control flow.

I don't use them. I just create an error type and pass that around.

The only legitimate exception I will accept is when you access invalid memory. That's a special case and depending on the environment something extraordinary must happen.

But exceptions and exception handling just creates annoying code. It doesn't add value, not really.

parent john567 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton