Article View: comp.lang.c
Article #477Re: Taming The Switch-Statement
From: Keith Thompson
Date: Sat, 17 Oct 2026 17:54
Date: Sat, 17 Oct 2026 17:54
48 lines
3897 bytes
3897 bytes
Tim Rentsch <tr.17687@z991.linuxsc.com> writes:
> Keith Thompson <Keith.S.Thompson+u@gmail.com> writes:
>> Tim Rentsch <tr.17687@z991.linuxsc.com> writes:
>>> Keith Thompson <Keith.S.Thompson+u@gmail.com> writes:
>>>> I find "break NAME;", where "NAME" is the name of an enclosing
>>>> construct, unambiguously better than "break N;", where N is the
>>>> number of levels to break out of. [...]
>>>
>>> Definitely.
>>>
>>>> There's a proposal for C2y to use goto labels as loop names, and a
>>>> competing one to define a new syntax like "for NAME (;;)" :
>>>>
>>>> https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3355.htm
>>>> https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3377.pdf
>>>
>>> I'm not particularly a fan of multi-level break/continue. But if
>>> we're going to have one of these, the second ("for NAME (;;)") is
>>> unquestionably better.
>>
>> Unquestionably? Why?
>
> Before I respond I'd like to ask you to list as many potential
> differentiators as you can think of, without regard to which of
> the two suggestions each one benefits, and without saying which
> ones you think favor one choice or the other. If you do that I
> can try to go through your list, say which ones I think are
> significant, which of the two choices each one favors, and maybe
> also assign some sort of priority ranking. Also that would give
> me a chance to think about whether there are other differentiators
> not on your list but that could seem to me to be relevant.
No, Tim, I absolutely will not do that.
I asked you to explain two words that you wrote. You do not get to
assign me homework as a precondition for answering a simple question.
You asserted that it's "unquestionably better". You can support
that assertion or not. If you're not going to answer my question,
an easier way to do that is to remain silent. I'm used to that
from you.
To be blunt, I don't care enough about your opinion to do extra
work to extract it from you.
--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */
Technical Details
Message-ID:
<11b0coc$f6tl$2@kst.eternal-september.org>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!kst.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> <868q3wp748.fsf@linuxsc.com>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!kst.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson <Keith.S.Thompson+u@gmail.com> Newsgroups: comp.lang.c Subject: Re: Taming The Switch-Statement Date: Sat, 17 Oct 2026 10:54:20 -0700 Organization: None to speak of Lines: 48 Message-ID: <11b0coc$f6tl$2@kst.eternal-september.org> 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> <868q3wp748.fsf@linuxsc.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Sat, 17 Oct 2026 17:54:21 +0000 (UTC) Injection-Info: kst.eternal-september.org; logging-data="498613"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19P0jgagnHF0aVJR1vmM6AJ"; posting-host="1c9c611a4b938d37c51084ac6587c6b8" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:kd63XMVjwJCLV1S/wlDdvThQ5Zc= sha256:0OMQCgpaxDRhFMHr9/4eyDpS+XSPsA5M2HLdRvqPdzk= sha1:FQiCI0PE5+MEHk4PbBXy+U/4ZGk= sha256:UG1DPsQF8LS8KzWzxsuw6wOAMlmpNDY9hf+25kmP/LE=