Subject: Re: [boost] Interest in an 'either' library?
From: David Sankel (camior_at_[hidden])
Date: 2013-06-26 11:24:34
On Tue, Jun 25, 2013 at 1:28 AM, Pierre Talbot <ptalbot_at_[hidden]> wrote:
> A good reusable library will be
> documented by its semantics primarily and provide use-cases to give the
>> user hints of where it will be useful (but never limit the user by the
>> author's necessarily limited foresight)
>> Indeed, the Expected class was firstly designed for error reporting. We
> can generalize it for an Either class but we lose some contexts that would
> have helped to simplify this reporting in C++. Maybe we can propose free
> functions over Either to handle this specific use case, but I don't know
> how well it will work.
Now we're talking! Lets come up with the best free-function error-reporting
use case functions we can and see if they are so horrible they're worth
making all the other use cases look broken.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk