Sujet : Re: Fixing a sample from K&R book using cake static analyser
De : pc+usenet (at) *nospam* asdf.org (Phil Carmody)
Groupes : comp.lang.cDate : 30. Jun 2024, 21:33:50
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <87a5j25fwx.fsf@fatphil.org>
References : 1 2 3 4 5 6 7 8
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
Lawrence D'Oliveiro <
ldo@nz.invalid> writes:
On Tue, 25 Jun 2024 11:47:50 +0300, Phil Carmody wrote:
In all honesty, I'd probably actually code with gotos, and jump to
whichever bit of cleanup was relevant.
>
Complicating the control flow, especially for cleanup paths which are
harder to test, is asking for trouble.
You call it complicating, I call it simplifying.
Phil
-- We are no longer hunters and nomads. No longer awed and frightened, as we havegained some understanding of the world in which we live. As such, we can castaside childish remnants from the dawn of our civilization.-- NotSanguine on SoylentNews, after Eugen Weber in /The Western Tradition/