
31 Jan
2018
31 Jan
'18
11:13 p.m.
AMDG 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 { 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