Article View: comp.lang.c
Article #369Re: Taming The Switch-Statement
From: Keith Thompson
Date: Wed, 14 Oct 2026 01:44
Date: Wed, 14 Oct 2026 01:44
19 lines
2031 bytes
2031 bytes
cross@spitfire.i.gajendra.net (Dan Cross) writes:
[...]
> Note this is the only place in that paper where Dennis Ritchie
> mentions `break`. Why was it overloaded for `switch`? He does
> not say, exactly, but he _does_ alude to space being a
> consideration for B, and some of the resulting syntactic quirks
> then escaping into C:
[...]
Pure speculation follows.
I'm skeptical that space concerns were the reasons for not having a
separate endcase keyword, though I suppose it's possible. (C had
23 keywords as of 1974.) It seems more likely that Ritchie just
didn't think of it.
--
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:
<11ammp5$12efg$3@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> <11aj73v$c2u$1@reader2.panix.com> <11ajcv8$3u33s$1@dont-email.me> <11ajsfi$28f2$5@kst.eternal-september.org> <11al2i7$gd2$1@reader2.panix.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: Tue, 13 Oct 2026 18:44:05 -0700 Organization: None to speak of Lines: 19 Message-ID: <11ammp5$12efg$3@kst.eternal-september.org> References: <119qf6l$2rmg3$1@dont-email.me> <11aj73v$c2u$1@reader2.panix.com> <11ajcv8$3u33s$1@dont-email.me> <11ajsfi$28f2$5@kst.eternal-september.org> <11al2i7$gd2$1@reader2.panix.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Wed, 14 Oct 2026 01:44:06 +0000 (UTC) Injection-Info: kst.eternal-september.org; logging-data="1128944"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1866EJ7mpdtztBnMB1HLaD1"; posting-host="8bc08a5e85dad83e60fe86919d5c20fb" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:FM/+mEVN0UtL4y2gFLuHtUJKZxE= sha256:5ngVK1uIHRgCHyekkIWWrRQIn/PHPA6phNvTHRKEXGA= sha1:Rt6+Tw/3URg2JU7nM2GR2ekQJKQ= sha256:dM4pIjHZeV3JLYPffLguaSOR4+G291CHmuG+/YM/TXk=