So it just a variant of optional
Frei Zhang

An std::variant of two types is equivalent to an Either. Unfortunately std::variant is only available for C++ 17. A proper Either type also gives you a better API.

If we ever get unified call syntax, I would advocate using std::variant with some free functions to implement map and join.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.