Why static analysis is the way to go
Alexandru Ermicioi
alexandru.ermicioi at gmail.com
Tue Jun 2 16:46:31 UTC 2026
On Saturday, 30 May 2026 at 10:55:41 UTC, Nick Treleaven wrote:
> Far too easy to forget that calling a function may throw an
> exception. And 'misuse' is so widespread, it's even in Phobos
> with auto-decoding.
Just like it is far too easy to ignore returned error code from a
function.
At least in case of exceptions you can put a try catch at root of
your thread/task, and make sure it doesn't kill entire process.
Plus you have nice stack trace for analysis if needed.
More information about the Digitalmars-d
mailing list