🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #593

Re: Taming The Switch-Statement

#593
From: Janis Papanagnou
Date: Tue, 20 Oct 2026 03:01
17 lines
2686 bytes
On 2026-10-20 04:45, Lawrence D’Oliveiro wrote:
> On Mon, 19 Oct 2026 19:38:38 -0400, Bob Duff wrote:
> 
>> The "goto" is good enough for jumping out of nested loops.
> 
> “Goto” leads inevitably to spaghetti code. [...]

Not if you only use it in those rare cases to jump out of a loop
and in a local context. - A 'break' LABEL is not better or worse
than a 'goto' LABEL concerning an inherent "spaghetti structure".

Janis

PS: "inevitably" - yet another word of type like "unquestionably"
(that we recently heard in another context). - Careful with adverbs,
folks, especially with absolute ones in generalizing text contexts!
Technical Details
Message-ID: <11b6li1$1kr9u$10@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <119qf6l$2rmg3$1@dont-email.me> <11ae56o$cjlv$4@dont-email.me> <20261010230355.00005189@yahoo.com> <11ae7eb$cjlv$6@dont-email.me> <11aeee0$24k8m$1@kst.eternal-september.org> <11aer17$286ml$2@dont-email.me> <11aeusp$29hmu$2@kst.eternal-september.org> <86mrsdpcgp.fsf@linuxsc.com> <11au6pr$3mdne$1@kst.eternal-september.org> <11auc0s$206gh$3@dont-email.me> <11b285v$121v2$2@dont-email.me> <11b293j$12jfa$1@dont-email.me> <11b2cuh$141vj$1@dont-email.me> <11b2eck$3pvd9$1@dont-email.me> <20261018171339.00005308@yahoo.com> <11b2mf1$16mof$2@dont-email.me> <20261018181623.00007978@yahoo.com> <11b347h$1cn63$1@dont-email.me> <20261018223859.000031d3@yahoo.com> <11b4n4s$1q18k$1@dont-email.me> <11b4smj$1vt4q$1@kst.eternal-september.org> <wccecdl8dmp.fsf@shell02.theworld.com> <11b6kkr$2kohl$3@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Janis Papanagnou <janis_papanagnou+ng@hotmail.com>
Newsgroups: comp.lang.c
Subject: Re: Taming The Switch-Statement
Date: Tue, 20 Oct 2026 05:01:21 +0200
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <11b6li1$1kr9u$10@dont-email.me>
References: <119qf6l$2rmg3$1@dont-email.me> <11ae56o$cjlv$4@dont-email.me>
 <20261010230355.00005189@yahoo.com> <11ae7eb$cjlv$6@dont-email.me>
 <11aeee0$24k8m$1@kst.eternal-september.org> <11aer17$286ml$2@dont-email.me>
 <11aeusp$29hmu$2@kst.eternal-september.org> <86mrsdpcgp.fsf@linuxsc.com>
 <11au6pr$3mdne$1@kst.eternal-september.org> <11auc0s$206gh$3@dont-email.me>
 <11b285v$121v2$2@dont-email.me> <11b293j$12jfa$1@dont-email.me>
 <11b2cuh$141vj$1@dont-email.me> <11b2eck$3pvd9$1@dont-email.me>
 <20261018171339.00005308@yahoo.com> <11b2mf1$16mof$2@dont-email.me>
 <20261018181623.00007978@yahoo.com> <11b347h$1cn63$1@dont-email.me>
 <20261018223859.000031d3@yahoo.com> <11b4n4s$1q18k$1@dont-email.me>
 <11b4smj$1vt4q$1@kst.eternal-september.org>
 <wccecdl8dmp.fsf@shell02.theworld.com> <11b6kkr$2kohl$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 20 Oct 2026 03:01:22 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="1731902"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX185uPq/+qil550zhAcFFuRD"; posting-host="98d152822712807c6006cdf81de10da1"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:aFo5o7anIXgxQ+6j3A+psEgUb3E= sha256:epqdeBdyT8g3WmkzECdUoA47W/Mv7HDp8MbXx9w0TrE=
	sha1:1droBWv6JgzB/iU3yL7dL7CPrcQ= sha256:x5UusVFHXugRfoBRrXPUHlso+KsyVWCGUZ7ES8ziCiQ=
In-Reply-To: <11b6kkr$2kohl$3@dont-email.me>
Content-Language: en-US