Alternatives to exceptions for error handling

Paul Backus snarwin at gmail.com
Mon Nov 23 00:22:10 UTC 2020


On Monday, 23 November 2020 at 00:12:28 UTC, IGotD- wrote:
> On Sunday, 22 November 2020 at 18:21:44 UTC, Paul Backus wrote:
>>
>> [1] 
>> http://open-std.org/JTC1/SC22/WG21/docs/papers/2018/p0709r0.pdf
>
> Doesn't the lean exceptions what Herb Sutter proposes have the 
> same problem as normal exception, that the data flow analysis 
> gives up. Anything that requires unwinding is not going to fit 
> for that purpose.

In Herb Sutter's proposal, throwing an exception is syntax sugar 
for a return statement. There is no stack unwinding.


More information about the Digitalmars-d mailing list