Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <87a5j25fwx.fsf@fatphil.org>
Deutsch   English   Français   Italiano  
<87a5j25fwx.fsf@fatphil.org>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Phil Carmody <pc+usenet@asdf.org>
Newsgroups: comp.lang.c
Subject: Re: Fixing a sample from K&R book using cake static analyser
Date: Sun, 30 Jun 2024 23:33:50 +0300
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <87a5j25fwx.fsf@fatphil.org>
References: <v53sl1$35qt7$1@dont-email.me> <v558hv$3dskb$1@dont-email.me>
	<20240623034624.135@kylheku.com> <87wmmfq4if.fsf@bsb.me.uk>
	<20240624012527.8bbe16b96f5bfca10feadb5c@gmail.moc>
	<87zfrbnsvv.fsf@bsb.me.uk> <874j9h8l3d.fsf@fatphil.org>
	<v5fhls$1ot2o$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Sun, 30 Jun 2024 22:33:50 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="c8a6ab971add697ef3903f01d3ec85a1";
	logging-data="727295"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18BjKLQmEiGVTl1FmvtuX7p"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
Cancel-Lock: sha1:5ZGTvXK/2wJKX+y6X0Oqu0G0mOw=
	sha1:xBrjrer/sCyu/sidMy7LxzT/T2A=
Bytes: 1859

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 have
gained some understanding of the world in which we live. As such, we can cast
aside childish remnants from the dawn of our civilization.
-- NotSanguine on SoylentNews, after Eugen Weber in /The Western Tradition/