<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">It doesn&#39;t use RTTI so it has the same cost as std::expected yet allows<br>
to separate success and failure like current exceptions. I don&#39;t see a<br>
reason to have std::expected in the standard if we gonna get std::error.<br></blockquote><div><br></div><div>But wait, is not it Sutter&#39;s std::error from this proposal - <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0709r0.pdf">http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0709r0.pdf</a>?</div><div>If yes, it is going to be even worse than current exceptions, due to concerns regarding its extensibility.</div><div>Read my post on reddit - <a href="https://www.reddit.com/r/cpp/comments/cliw5j/should_not_exceptions_be_finally_deprecated/">https://www.reddit.com/r/cpp/comments/cliw5j/should_not_exceptions_be_finally_deprecated/</a></div><div>in particular, &quot;Zero-overhead deterministic exceptions&quot; section.</div></div></div>

