Why static analysis is the way to go
Meta
jared771 at gmail.com
Mon Jun 1 06:23:35 UTC 2026
On Saturday, 30 May 2026 at 10:55:41 UTC, Nick Treleaven wrote:
> On Saturday, 30 May 2026 at 06:43:13 UTC, Meta wrote:
>> On Saturday, 30 May 2026 at 06:14:25 UTC, monkyyy wrote:
>>> a) exceptions airnt useful
>>
>> I dunno why everyone hates exceptions. They're incredibly
>> useful, and generally significantly reduce the complexity of
>> your code. Like pretty much everything in programming,
>> misusing them will of course cause major issues.
>
> 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.
This is where checked exceptions come in. I don't care what
anyone else says, they're more useful than harmful, and people
are undeservedly biased against checked exceptions because they
read that one article from that guy, that says checked exceptions
are bad.
More information about the Digitalmars-d
mailing list