22 Jun
2013
22 Jun
'13
3:56 p.m.
On 06/22/13 10:17, Larry Evans wrote:
On 06/21/13 11:35, David Sankel wrote:
**semantics**:
template< typename left_type, typename right_type> struct either { [snip] **uses**:
**Use 1**: Can be used as an alternative to exceptions or the (error codes+set reference idiom):
either
load_file(...); [snip] Isn't this like haskell's either:
http://www.haskell.org/ghc/docs/6.12.2/html/libraries/base-4.2.0.1/Data-Eith...
[snip]
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:
http://book.realworldhaskell.org/read/error-handling.html which, under: Use of Either talks about using either to handle errors. -regards, Larry