nothrow by default
Andre Pany
andre at s-e-a-p.de
Thu Jan 9 11:59:53 UTC 2020
On Thursday, 9 January 2020 at 10:32:25 UTC, Jonathan M Davis
wrote:
> On Wednesday, January 8, 2020 11:26:41 PM MST Walter Bright via
> Digitalmars- d wrote:
>> [...]
>
> I would really hope not. IMHO, they are usually by far the best
> way to handle error conditions in a program. Anything else
> results in you having to deal with the various possible error
> conditions when the function returns, which is _far_ more
> unwieldy and much more error-prone. It also doesn't work well
> with function call chaining.
>
> [...]
I absolutely agree with all your points. From a compiler
developer view, Walter is right. But from an application
developer view, reducing the usability of Exceptions is terrible
bad.
Kind regards
Andre
More information about the Digitalmars-d
mailing list