🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #269

Re: Taming The Switch-Statement

#269
From: bart
Date: Mon, 12 Oct 2026 15:47
34 lines
2794 bytes
On 12/10/2026 15:34, Scott Lurndal wrote:
> bart <bc@freeuk.com> writes:
>> On 12/10/2026 06:22, David Brown wrote:
>>> On 12/10/2026 00:05, bart wrote:
>>
>>>> So you don't really get it. That's fine.
>>>>
>>>
>>> So now you can drop it, along with all your other complaints about the C
>>> language and tools people use with it?
>>
>> My opinions haven't changed at all. KT doesn't care because he doesn't
>> understand the importance of having properly designed features.
> 
> "properly designed" by what criteria?
> 
> Making you happy is not a valid criteria.

Is there any language that you would consider badly designed?

If so, what would you do if it become amazingly popular and you were 
obliged to deal with it in your work; would you change your mind, or 
would you still think it was poor?

Hopefully the latter.

But back to C: this is how 'switch' is defined in the grammar:

   'switch' ( expression ) statement

Notice no mention of 'case' or 'default' statements!

Is that not a giant red flag, that there is normal shape to 
switch-statement syntax?
Technical Details
Message-ID: <11aivdn$3nvmh$1@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-mail
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> <11aehqg$24k8m$3@kst.eternal-september.org> <11aenps$27sq7$1@dont-email.me> <11aetqv$29hmu$1@kst.eternal-september.org> <11afrfq$2j2o6$1@dont-email.me> <11agtkb$30q22$1@kst.eternal-september.org> <11ah16h$320sj$2@dont-email.me> <11ahqpu$38ir0$3@dont-email.me> <11aidi3$3gbu4$1@dont-email.me> <td6zS.60653$jNL6.31326@fx12.iad>

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: bart <bc@freeuk.com>
Newsgroups: comp.lang.c
Subject: Re: Taming The Switch-Statement
Date: Mon, 12 Oct 2026 16:47:02 +0100
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <11aivdn$3nvmh$1@dont-email.me>
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> <11aehqg$24k8m$3@kst.eternal-september.org>
 <11aenps$27sq7$1@dont-email.me> <11aetqv$29hmu$1@kst.eternal-september.org>
 <11afrfq$2j2o6$1@dont-email.me> <11agtkb$30q22$1@kst.eternal-september.org>
 <11ah16h$320sj$2@dont-email.me> <11ahqpu$38ir0$3@dont-email.me>
 <11aidi3$3gbu4$1@dont-email.me> <td6zS.60653$jNL6.31326@fx12.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 12 Oct 2026 15:47:03 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3931857"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/q9cTYMH2dEZtDCwHQoyBk"; posting-host="77c9fe16ce3505b18aae67dd9ba4b8ee"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:P/qGhbyo1UH0dkVKh76UIGc2wwo= sha256:9o87aMl5WnyPqz7eAEYrunep2x4qA0LUXRLS7f1Q35E=
	sha1:bHMHmastjbovmN48i85LJwhgZOs= sha256:eUKA4MFT5IopZm23tX1nR6XP1j0J9xvFYt3q/ewD1g4=
In-Reply-To: <td6zS.60653$jNL6.31326@fx12.iad>
Content-Language: en-GB