Boost logo

Boost :

Subject: Re: [boost] [review] Review of Outcome (starts Fri-19-May)
From: Niall Douglas (s_sourceforge_at_[hidden])
Date: 2017-05-24 15:00:20


>>> This means, the initial example should use `boost::outcome::result`
>>> (instead of `boost::outcome::outcome`). And then function that
>>> inspects the
>>> result could read:
>>>
>>> ```
>>> void test()
>>> {
>>> if (auto r = fun)
>>> use_int_value(r.value());
>>> else
>>> inspect_error_code(r.error());
>>> }
>>> ```
>>>
>> The initial example could look like this:
>> https://github.com/akrzemi1/__sandbox__/blob/master/outcome_intro.md
>>
> THis is a better example of what Outcome can do, yes.

You both would prefer that the landing page motivating example not show
how outcomes can also transport caught C++ exceptions through non-C++
exception code?

Niall

-- 
ned Productions Limited Consulting
http://www.nedproductions.biz/ http://ie.linkedin.com/in/nialldouglas/

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk