Article View: comp.lang.c
Article #380Re: Taming The Switch-Statement
From: Dan Cross
Date: Wed, 14 Oct 2026 10:58
Date: Wed, 14 Oct 2026 10:58
37 lines
2373 bytes
2373 bytes
In article <11amn48$7ell$1@news.xmission.com>, Kenny McCormack <gazelle@shell.xmission.com> wrote: >In article <11amlq9$12efg$1@kst.eternal-september.org>, >Keith Thompson <Keith.S.Thompson+u@gmail.com> wrote: >>bart <bc@freeuk.com> writes: >>[...] >>> My view is that using distinct keywords for loop-break and >>> switch-break (accepting that the language wants the latter) would have >>> had pretty much zero costs, but worthwhile benefits. >> >>I agree, and I don't think that's particularly controversial. >> >>The point on which we disagree is what can and should be done about >>it now. > >The answer to that is: Invent new languages with C-like syntax, but better. >You can't do anything about C, but you can do better as long as you call >the result something else. > >Like C#. Like C++. Like Swift. I mean...we've got a ton of those now. Go, Rust, Zig, Switch, and on and on. We don't really need to invent new languages. OCaml, Haskell, Julia, ad infinitum. In my view, the bigger impediments to moving off of C as the dominant systems programming language are two fold: 1. providing a clean path from C to the new language(s), and 2. overcoming the enormous inertia of decades of defaulting to C for systems programs. I love C, but I'm not in love with C anymore, and if I am starting a new project these days, it's not the first thing I reach for anymore. - Dan C.
Technical Details
Message-ID:
<11ann95$4sj$1@reader2.panix.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!panix!.POSTED.spitfire.i.gajendra.net!not-for-mailReferences:
<119qf6l$2rmg3$1@dont-email.me> <11aljoo$m15u$1@dont-email.me> <11amlq9$12efg$1@kst.eternal-september.org> <11amn48$7ell$1@news.xmission.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!panix!.POSTED.spitfire.i.gajendra.net!not-for-mail From: cross@spitfire.i.gajendra.net (Dan Cross) Newsgroups: comp.lang.c Subject: Re: Taming The Switch-Statement Date: Wed, 14 Oct 2026 10:58:45 -0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Message-ID: <11ann95$4sj$1@reader2.panix.com> References: <119qf6l$2rmg3$1@dont-email.me> <11aljoo$m15u$1@dont-email.me> <11amlq9$12efg$1@kst.eternal-september.org> <11amn48$7ell$1@news.xmission.com> Injection-Date: Wed, 14 Oct 2026 10:58:45 -0000 (UTC) Injection-Info: reader2.panix.com; posting-host="spitfire.i.gajendra.net:166.84.136.80"; logging-data="5011"; mail-complaints-to="abuse@panix.com" X-Newsreader: trn 4.0-test77 (Sep 1, 2010) Originator: cross@spitfire.i.gajendra.net (Dan Cross)