'unwrap envy' and exceptions

IGotD- nise at nise.com
Mon Sep 13 09:36:37 UTC 2021


On Monday, 13 September 2021 at 06:05:47 UTC, Paulo Pinto wrote:
>
> That will probably never happen.
>
> First, a prototype has been requested to prove the design, 
> before going forward, so C++26 might be the next time they will 
> actually look at it.
>
> Secondly, Bjarne has written a rebutall that the biggest issue 
> with exceptions is that compiler vendors just don't care to 
> optimize the implementation, because of the usual ABI 
> discussions,
>
> http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1947r0.pdf
>
> So I really don't expect this to ever be voted in into ISO C++, 
> just like the reflection prototype and metaclasses proposals 
> before it.

That still doesn't prevent D from implementing the design. D can 
actually introduce it before C++.

Implementation wise it could be complicated for D. Usage wise it 
fits D quite well as you can still use the exception syntax with 
the convenient scope guards.


More information about the Digitalmars-d mailing list