Boost logo

Boost :

Subject: Re: [boost] [Stacktrace] review
From: Robert Ramey (ramey_at_[hidden])
Date: 2016-12-16 18:53:02


On 12/16/16 2:05 PM, Andrey Semashev wrote:
> On Sat, Dec 17, 2016 at 12:54 AM, Robert Ramey <ramey_at_[hidden]> wrote:
>> On 12/16/16 12:48 PM, Emil Dotchevski wrote:
>>>
>>> a function will either succeed or it will not return.
>>
>> not necessarily
>>
>> bool f() {
>> if ...
>> invoke_error
>> return failure or ignore error
>> ...
>> return success
>> }
>>
>> if invoke error is mapped to throw exception then it will never return. If
>> it's mapped to something else - like emitting an error message or invoking a
>> user specified call back then it won't throw an exception.
>
> That results in a really horrible API with dual error reporting mechanisms.

FYI - it's not a dual reporting mechanism. It's leaving the choice of
reporting/handling mechanism to the library user. Once he selects it,
that one is it.

Robert Ramey

>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>


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