expectations 0.1.0

aliak something at something.com
Mon Sep 3 13:00:05 UTC 2018


On Monday, 3 September 2018 at 06:00:06 UTC, Thomas Mader wrote:
> On Monday, 3 September 2018 at 00:52:39 UTC, Vladimir Panteleev 
> wrote:
>> There are generally two classic approaches to error handling:
>
> std::expected is not the only thing on this topic going on in 
> C++.
> There is also the proposal from Herb Sutter [1].
> It's not a library solution and changes even the ABI but it's 
> an interesting approach.
> He also tries to get compatibility into C via an extension. 
> (See 4.6.11 in [1])
>
> [1] 
> http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0709r0.pdf

This would be great to have in D. Swift [0] has something 
similar, and personally after using it for a few years, I can say 
that I've seen next to no unhandled exception errors in iOS code 
at least.

[0] 
https://www.mikeash.com/pyblog/friday-qa-2017-08-25-swift-error-handling-implementation.html


More information about the Digitalmars-d-announce mailing list