[OT] - C++ exceptions are becoming more and more problematic

meta meta at gmail.com
Thu Feb 24 00:19:44 UTC 2022


> Support struct based exceptions (value type), passed on stack 
> (and hence RC support) as part of the return value of a 
> function.


Who will allocates that (the RC part)?

I personally disagree with the idea of exceptions altogether..


The answer is in solutions like in Zig/Go, errors, multiple 
return values, if changing the way error handling works in D, 
better make it good, for good!

There is no reason to be stuck with exceptions..

I moved away from them completly in C++, i wish i could do the 
same with D..


More information about the Digitalmars-d mailing list