Boost logo

Boost :

Subject: Re: [boost] [review] Review of Outcome v2 (Fri-19-Jan to Sun-28-Jan, 2018)
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2018-01-31 23:13:27


On 01/31/2018 03:26 PM, Vinícius dos Santos Oliveira via Boost wrote:
> <snip>
> Can you show me _any_ code using Result-like error handling that had
> problems that made people as smart as the C++ committee take so much time
> just to design a variant? Because any Rust programmer will design a variant
> like this:
> enum Either<A, B> {
> Left(A),
> Right(B)
> }
> What happened here? I designed a variant in less than 10 seconds as robust
> as the C++ variant which required effort by many people and wasn't designed
> nearly as fast as this one.

  You didn't design anything. It's built in
to the language and has addition restrictions
which outright forbid the cases that make variant
hard in C++.

In Christ,
Steven Watanabe

Boost list run by bdawes at, gregod at, cpdaniel at, john at