[OT] - C++ exceptions are becoming more and more problematic
rikki cattermole
rikki at cattermole.co.nz
Thu Feb 24 11:25:22 UTC 2022
On 25/02/2022 12:22 AM, IGotD- wrote:
> D also has the ingenious scope guards (scope(exit) and such) which work
> very well with exceptions. It would be bad if this would be thrown away
> with a new error handling mechanism. Therefore I think return values
> should also have the exception syntax.
Agreed, I didn't write it in my proposal earlier because nothing syntax
wise would change for how you would use it.
The only difference is the @throws attribute as far as users are
concerned and that has benefits by itself.
More information about the Digitalmars-d
mailing list