Path: csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Tim Rentsch
Newsgroups: comp.lang.c
Subject: Re: Taming The Switch-Statement
Date: Thu, 15 Oct 2026 05:17:10 -0700
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <86bj8vqhtl.fsf@linuxsc.com>
References: <119qf6l$2rmg3$1@dont-email.me> <11ao8af$1k8p3$1@dont-email.me> <11aol8k$adq$1@reader2.panix.com> <11aoqa9$1rgda$1@dont-email.me> <11apa4b$kv$1@reader2.panix.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Date: Thu, 15 Oct 2026 12:17:11 +0000 (UTC)
Injection-Info: dont-email.me; logging-data="2486706"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/wMsDLjSDHmlbHw95ILXRrP6oS99n7Oew="; posting-host="8e248dd53a94b2a901695ff9f1057f0e"
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:3pLCIWPDxkBSOj8Ev/U+SOHOjTY= sha1:veqRfOANDetXO7Ud09jBoXbqTB8= sha256:u37k3l8lHpohBlFqmn2WnA6CSr5KZaStPR2GTwYur+s= sha1:mFcl0kpXjwh9D8uF/tfLXH4LlIA= sha256:9WabwUkUL1qlRkfILYUvjqm/yLRwaj1wDccIRkVXINs=
Xref: csiph.com comp.lang.c:403187
cross@spitfire.i.gajendra.net (Dan Cross) writes:
> In article <11aoqa9$1rgda$1@dont-email.me>, bart wrote:
>
>> On 14/10/2026 20:30, Dan Cross wrote:
>> [snip more of the same already hashed and rehashed ad naseum]
>>
>> As for multiple nested loops, this will fix that too, that's great. We
>> just require some real examples of that being needed!
>
> Here's a pretty terrible way to write part of a lexical
> analyzer. I just typed this in an hour or so ago.
>
> [200+ lines of code]
This code provides an excellent example of why multi-level breaks
should not be added to C. The code would be easier to understand
if all the 'break