Subject: Re: [boost] Interest in an 'either' library?
From: Larry Evans (cppljevans_at_[hidden])
Date: 2013-06-22 11:56:21
On 06/22/13 10:17, Larry Evans wrote:
> On 06/21/13 11:35, David Sankel wrote:
>> template< typename left_type, typename right_type>
>> struct either
>> **Use 1**: Can be used as an alternative to exceptions or the (error
>> codes+set reference idiom):
>> either<error_code, file_id> load_file(...);
> Isn't this like haskell's either:
> I remember seeing elsewhere that haskell's either was mentioned as
> a replacement for exceptions. I see if I can find it.
Googling "haskell either exceptions" turned up:
Use of Either
talks about using either to handle errors.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk