Article View: comp.lang.c
Article #541Re: Taming The Switch-Statement
From: David Brown
Date: Mon, 19 Oct 2026 10:26
Date: Mon, 19 Oct 2026 10:26
52 lines
3600 bytes
3600 bytes
On 19/10/2026 00:20, bart wrote: > On 18/10/2026 20:09, David Brown wrote: >> On 18/10/2026 18:09, bart wrote: > >>> Isn't that the problem? C makes it tricky. Here are two very >>> straightforward declarations from my projects: >>> >>> ref []ichar stringtable # ichar is ref char >>> [N]ref proc(T) handlertable >> >> Are you suggesting that in your language, "stringtable" could also be >> declared as : >> >> ref ichar [stringtable] >> or >> ][ stringtable ichar ref >> ? > > (Warning: longer post than I'd intended.) > > I think you're clutching at straws. I am simply mocking your suggestion that "requiring the syntactical elements to be in the right place" is a "problem" unique to C. I'm snipping the irrelevant stuff about your language - I don't know why you bother posting it. I also don't know why you bothered inventing new meaningless combinations of pointers, arrays and functions. > > So, what do you think the purpose of CDECL is? Since to you, NOTHING > about C type syntax ever appears to be a problem. I've never had any use of CDECL - it has no purpose to me. I doubt if many people use it except for extreme artificial examples. > > Just admit that the whole concept was a failure. The creators have > already done so. The early C designers have said that the declaration syntax for C ended up more complex than it could have been, and with hindsight they would have picked a different syntax. Fair enough. But they did not "admit that the whole concept was a failure". Anyone who has used C significantly (like anyone who has used any programming language significantly) has things about the language and syntax that they dislike and think could have been better. But no language has had comparable success to that of C. It is utterly laughable to say that "the whole concept of C's declaration syntax was a failure".
Technical Details
Message-ID:
<11b4r8h$1q18k$2@dont-email.me>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> <11arjmc$2qid7$1@dont-email.me> <11at5vi$5vu$1@reader2.panix.com> <11auad0$3no1k$1@dont-email.me> <11aupfl$3ul$1@reader2.panix.com> <11avmfb$55rt$1@dont-email.me> <11b2a6d$131h6$1@dont-email.me> <11b2hr6$15thq$1@dont-email.me> <11b2l06$16mof$1@dont-email.me> <11b2qv0$19h68$1@dont-email.me> <11b35gt$1cn63$2@dont-email.me> <11b3gng$1i4mh$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: David Brown <david.brown@hesbynett.no> Newsgroups: comp.lang.c Subject: Re: Taming The Switch-Statement Date: Mon, 19 Oct 2026 12:26:25 +0200 Organization: A noiseless patient Spider Lines: 52 Message-ID: <11b4r8h$1q18k$2@dont-email.me> References: <119qf6l$2rmg3$1@dont-email.me> <11arjmc$2qid7$1@dont-email.me> <11at5vi$5vu$1@reader2.panix.com> <11auad0$3no1k$1@dont-email.me> <11aupfl$3ul$1@reader2.panix.com> <11avmfb$55rt$1@dont-email.me> <11b2a6d$131h6$1@dont-email.me> <11b2hr6$15thq$1@dont-email.me> <11b2l06$16mof$1@dont-email.me> <11b2qv0$19h68$1@dont-email.me> <11b35gt$1cn63$2@dont-email.me> <11b3gng$1i4mh$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Mon, 19 Oct 2026 10:26:25 +0000 (UTC) Injection-Info: dont-email.me; logging-data="1901844"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX185c9CSIiQmlSd5Yo7XU5sFYxl2eZWLaDA="; posting-host="f8e69aeaa618e660247a66e432a03539" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:TotON2Cac7ozkZe57EX7EzxtKH8= sha256:zi5zFyjXHVoiHrBrINDR2IRsJCg0EgkzsSBWtKN91Qs= sha1:zSZplokSubUWytcfP/4NI35aO7I= sha256:BxSYS8cTTfkJxDyQZopz8DV+UuiS1LwIvxxCoqBwW10= Content-Language: en-GB, nb-NO In-Reply-To: <11b3gng$1i4mh$1@dont-email.me>