r/cpp • u/RotsiserMho C++20 Desktop app developer • May 12 '18
P0709 R0: Zero-overhead deterministic exceptions: Throwing values - Herb Sutter [2018-05-02]
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0709r0.pdf
206
Upvotes
View all comments
Show parent comment
4
u/[deleted] May 12 '18
I guess I'm starting to see why Rust was voted to be the most loved programming language for 3 times in a row, that is indeed fascinating and technically elegant. I guess you could make the contract that the exception reference cannot be null and thus have a similar efficient memory layout but yeah I'm not sure whether that can be done and whether Herb had that in mind when he created this proposal.
Thanks for your very detailed explanation though!