Sujet : Re: encapsulating directory operations
De : Bonita.Montero (at) *nospam* gmail.com (Bonita Montero)
Groupes : comp.lang.cDate : 07. Jun 2025, 17:31:35
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <1021pgp$35sqk$1@raubtier-asyl.eternal-september.org>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
User-Agent : Mozilla Thunderbird
Am 07.06.2025 um 13:58 schrieb wij:
C++ is no better, probably worse. Firstly, the term 'exception' (and
'vector' probably) is disabled in human mind to think about exception.
I deal with exceptions every day and I've no problems with that. C++
exceptions aren't that clean like Java exceptions, but still make much
less work than C return code handling.
C++ had been trying to HIDE error (exception) from its beginning, very wrong
and very unsuccessful.
Exceptions are the cleanest way of error handling. In most cases you
deal with the error in a higher function and not in the leaf of the
call graph; therefore exceptions are perfect.