|
|
|
|
|
by whatsakandr
418 days ago
|
|
Like most things in C++, I wish the default was `nothrow`, and you added throw for a function that throws. There's so many functions that don't throw, but aren't marked `nothrow`. In my experience I've used exceptions for things that really should never fail, and optional for things that are more likely to. |
|
For practitioners it serves mainly as a pointless gotcha. In safety critical domains the batteries that come with c++ are useless and so while they are right to observe this would be a major problem there they offer no real relief.