Liste des Groupes | Revenir à cl c |
Am 08.06.2025 um 16:52 schrieb wij:
I know a bit of the development of std::filesystem. The view of mere 'standard'
disregards fact and uses more the 'assertion' criticized.
Another statement without arguments.
"dont' need" is illusion, errors are always there, mostly ignored and encouraged
to ignore by simplification.
If the code is written to be exception-safe, i.e. it uses
RAII throughout, then this is easily possible.
C has not hard coded what 'exception' should be. E.g. C can also set an error
object and let interested code to handle it in many ways, what's left is impl.
issues.
Are you serious? The fact that the exception type is transported along
with the exception itself makes things really convenient. This way, the
stack can be unrolled until the correct exception handler is found.
But, I think the 'throw' mechanism (not std::exception) is good, like many
others. 'throw' is more like a soft assert failure, which is no error handling.
Totally different - asserts are handled at debug-time.
Based on this statement, you didn't understand exceptions correctly.
Les messages affichés proviennent d'usenet.