Hacker News new | ask | show | jobs
by Rusky 3741 days ago
...and the same is true of Rust, just with different defaults. Switch allocation failure from an abort to a panic and catch the panic just like you would in C++.

What's incomplete about that? It's not like C++ can't be switched in the other direction with -fno-exceptions or equivalent.

1 comments

-fno-exceptions is not part of C++. C++ is not whatever GCC and Clang happen to accept.