Article View: comp.lang.c
Article #270Re: Taming The Switch-Statement
From: Johann 'Myrkraverk' Oskarsson
Date: Mon, 12 Oct 2026 16:15
Date: Mon, 12 Oct 2026 16:15
50 lines
3182 bytes
3182 bytes
On 10/12/2026 11:47 PM, bart wrote: > 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? Not to me. A giant red flag would be something akin to switch ( foo ) printf( "Hello, bart\n" ) ; where the printf() never gets called. Best wishes, and happy red flags! -- Johann | email: invalid -> com | http://www.myrkraverk.com/blog/ I'm not from the Internet, I just work there. | via Easynews.com https://bsky.app/profile/myrkraverk.bsky.social | for ( ;; ) _:; Federated at https://fed.brid.gy/bsky/myrkraverk.bsky.social
Technical Details
Message-ID:
<dI7zS.10223$AEj4.10181@fx17.ams4>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx17.ams4.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> <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> <11aivdn$3nvmh$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!peer01.iad!feed-me.highwinds-media.com!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx17.ams4.POSTED!not-for-mail MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Taming The Switch-Statement Newsgroups: comp.lang.c 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> <11aivdn$3nvmh$1@dont-email.me> Content-Language: en-US From: Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> Organization: Watcom Pro Ltd. In-Reply-To: <11aivdn$3nvmh$1@dont-email.me> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Lines: 50 Message-ID: <dI7zS.10223$AEj4.10181@fx17.ams4> X-Complaints-To: abuse@easynews.com X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly. Date: Tue, 13 Oct 2026 00:15:04 +0800 X-Received-Bytes: 2997