Article View: comp.lang.c
Article #502Re: Taming The Switch-Statement
From: Michael S
Date: Sun, 18 Oct 2026 14:13
Date: Sun, 18 Oct 2026 14:13
30 lines
3018 bytes
3018 bytes
On Sun, 18 Oct 2026 14:34:28 +0200
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:
> On 2026-10-18 14:09, David Brown wrote:
> >
> > [...] (I don't know why N3377 proposed "do { } while NAME ( )"
> > rather than "do NAME { } while ( )". )
>
> Oh! - I can only think that it would then be (sort of) "consistent"
> with the place of the label attacked in a 'while' loop; i.e. behind
> the 'while' keyword. - It's inconsistent in another interpretation,
> though; and I'd certainly have favored the latter form, to have the
> label consistently attached at the loop-entry keyword.
I'd prefer label consistently attached to the loop-exit keyword.
Unfortunately, for() and while() loops have no such keyword.
> We'll see what they finally decide (unless it's already clear; I'm
> not sure about the factual weight of the "proposal")...
>
I tend to agree with Tim (if I correctly understood him): a.t.m. the
best outcome would be proposal scrapped completely.
> Janis
>
> > [...]
>
Technical Details
Message-ID:
<20261018171339.00005308@yahoo.com>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-mailReferences:
<119qf6l$2rmg3$1@dont-email.me> <11ac0mi$19kfd$1@dont-email.me> <11ac2jv$1a84t$1@dont-email.me> <11ac783$1bkuo$1@kst.eternal-september.org> <11ad5eq$1l8hg$1@dont-email.me> <11ad9fg$cjm0$4@dont-email.me> <11addhr$1oakb$1@dont-email.me> <11aduuk$cjlv$1@dont-email.me> <20261010220212.000063fd@yahoo.com> <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>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: Michael S <already5chosen@yahoo.com> Newsgroups: comp.lang.c Subject: Re: Taming The Switch-Statement Date: Sun, 18 Oct 2026 17:13:39 +0300 Organization: A noiseless patient Spider Lines: 30 Message-ID: <20261018171339.00005308@yahoo.com> References: <119qf6l$2rmg3$1@dont-email.me> <11ac0mi$19kfd$1@dont-email.me> <11ac2jv$1a84t$1@dont-email.me> <11ac783$1bkuo$1@kst.eternal-september.org> <11ad5eq$1l8hg$1@dont-email.me> <11ad9fg$cjm0$4@dont-email.me> <11addhr$1oakb$1@dont-email.me> <11aduuk$cjlv$1@dont-email.me> <20261010220212.000063fd@yahoo.com> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Injection-Date: Sun, 18 Oct 2026 14:13:47 +0000 (UTC) Injection-Info: dont-email.me; logging-data="1262206"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/qW7zAyu+/RdMfUgXQp/RcYW3nTVYhf4k="; posting-host="f3ba9e4a06adc8c40e079351cfd7a0db" Cancel-Lock: sha1:w7Lz1cxwn9kEk0OktMMrfMo83VE= sha256:imNZZdQ9v1ZRtw4McqrTwmLuzjtYCSQqQqylyFxxHlE= sha1:QAOfaCsDmDMh4KvTmOERbVluCO8= sha256:x/0Z+b6Gt6/7J/xYTqh6UgEwa0HZv8+t1DK7mSA2r7A= X-Newsreader: Claws Mail 4.1.1 (GTK 3.24.34; x86_64-w64-mingw32)