The solution to "Error handling"...

Jonathan M Davis newsgroup.d at jmdavisprog.com
Sun Jul 5 05:33:39 UTC 2026


On Friday, July 3, 2026 6:48:36 PM Mountain Daylight Time Walter Bright via Digitalmars-d wrote:
> The "no error handling" scheme of dealing with errors is a rather wrenching
> shifting of perspective, and at first blush it sounds all wrong, but I think it
> is going to become a big deal. I plan on talking about it at DConf.

I'm not sure that I'd say that it sounds all wrong so much as it's often
non-obvious how or when you can do it. In many cases, it requires reframing
the problem and/or looking at it differently, and that can be difficult.

I'd say that it's similar to designing APIs which can't be misused. It's
often impossible or impractical, but the closer that you can get to it, the
fewer problems you (or anyone else) is likely to run into when using that
API. But doing that is often not straightforward.

- Jonathan M Davis






More information about the Digitalmars-d mailing list