🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #546

Re: Taming The Switch-Statement

#546
From: David Brown
Date: Mon, 19 Oct 2026 12:08
61 lines
4019 bytes
On 19/10/2026 13:47, bart wrote:
> On 19/10/2026 02:19, Dan Cross wrote:
>> In article <11b0mfv$j5ll$1@dont-email.me>, bart  <bc@freeuk.com> wrote:
> 
>> I see that you convenient snipped out my comment about C++,
>> which is the direct counter example.
> 
> I don't want to discuss C++. That language is abominable, other than as 
> the go-to example of language design going very wrong.

And yet it is another /massively/ successful language.  Perhaps you are 
correct that C and C++ are terrible designs - but that would mean "good" 
and "bad" language design has nothing much to do with how successful a 
language is, or how many people manage to use the language to write 
good, working, useful software.  Mind you, we have no examples of 
languages that you consider "good" language design, other than your own 
languages.

> 
>> "Had" is a strong word; dare I say it...a subjective word.
>>
>> In fact, there have been all kinds of alternatives for years.
>> In the earlish 1980s, there was Modula-2, PL/M, Forth, Ada, CLU,
>> BLISS, and so on.  You yourself admit you started from Algol68.
>> By the late 1980s you had Oberon, decent versions of ML, C++
>> and Objective-C, etc; by the 1990s, there were more than you
>> could shake a stick at.  Now?  Take your pick.
>>
>> You never "had" to use your own language.
> 
> OK. But they HAD to create C? There were quite a few languages in the 
> early 70s too: like Pascal, Fortran, PL/I, Coral-66, plus of course BCPL 
> and B. So why a new one?

Check off "whataboutism" on the logical fallacy bingo card !

> 
>>  Generations of programmers have handled C's
>> all right as well.
> 
> How many gave up because it was too much? How many still struggle with 
> it and have to employ those 4 or 5 workarounds which I mention 
> elsewhere? How much has it affected productivity?

I have never heard of anyone giving up C because of the declaration 
syntax.  Have you?

Once you have removed pathological examples, I have not seen anyone but 
C newbies have trouble with real-world C declarations - and having 
trouble when you are new to a language is perfectly normal for all 
languages.

And by "workarounds", do you mean language features for working with types?

I have heard people complain about C's declaration syntax, and heard 
people say it is weird, or ugly, or counter-intuitive - but not that it 
actually causes real productivity problems, real bugs, or chases people 
away from the language.  Any point you may have had has been long lost 
in your wild exaggerations.

Technical Details
Message-ID: <11b518m$1q18k$4@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> <11avmfb$55rt$1@dont-email.me> <11b0cvs$skc$1@reader2.panix.com> <11b0mfv$j5ll$1@dont-email.me> <11b3r71$6me$1@reader2.panix.com> <11b500f$216c4$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 14:08:54 +0200
Organization: A noiseless patient Spider
Lines: 61
Message-ID: <11b518m$1q18k$4@dont-email.me>
References: <119qf6l$2rmg3$1@dont-email.me> <11avmfb$55rt$1@dont-email.me>
 <11b0cvs$skc$1@reader2.panix.com> <11b0mfv$j5ll$1@dont-email.me>
 <11b3r71$6me$1@reader2.panix.com> <11b500f$216c4$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 12:08:55 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="1901844"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/opGG2cCMs8m6xYzrDjz5u2PaYKCY57kw="; posting-host="f8e69aeaa618e660247a66e432a03539"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:hJBA0jIzr1Nm1SzT0lba38Gk5Fo= sha256:kDXq1NQEhx9V6yUHnpLdKjjy145b7KKLCE1sQZU8CnM=
	sha1:pdZ9jy16ztuE7Veg08LOTsPwIxM= sha256:lhO9P0MndredRBq50aPUt2+EVV3gXJ/Sy5tR6w0mueI=
In-Reply-To: <11b500f$216c4$1@dont-email.me>
Content-Language: en-GB, nb-NO