← Back to context

Comment by anonnon

18 hours ago

> If the entire natural inclination of the language is to use exceptions, and you don't, beginning with C++17 and C++23

I've personally written libraries targeting C++20 that don't use exceptions. Again, error codes, and now std::optional and std::expected, are reasonable alternatives.

> What is the tradeoff being offered? Additional memory safety guarantees, but less good than Rust, for

It's not letting the perfect be the enemy of the good. It's not having to rewrite existing code significantly, or adopt a new toolchain, or sacrifice support for any platform Linux currently supports with a GCC backend.