Just eliminated C++ exceptions in a complicated multithreaded library. It’s 15% faster despite all performance sensitive functions previously being declared noexcept, with no obvious explanation.
-
-
Multi return value... But that's not c++.
-
Could return a std::variant for multiple return values. That's basically the core of Herb Sutter proposal. The main thing is having a clean way to handle them in "branch all the way out of here right this very instant" situations. That's where some compiler magic would be nice.
- 1 more reply
New conversation -
-
-
I wish I could non-locally exit
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Something like Rust's Result and the ? operator maybe? this way it also forces you to eventually handle it while w/exceptions you may actually forget to handle it and the entire program crashes... you also have to remember that that particular function throws etc...
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.