🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #461

Re: Taming The Switch-Statement

#461
From: bart
Date: Fri, 16 Oct 2026 23:01
59 lines
3625 bytes
On 16/10/2026 13:40, Dan Cross wrote:
> In article <11arjmc$2qid7$1@dont-email.me>, bart  <bc@freeuk.com> wrote:

>  Has it truly
> never occurred to you that many other people just don't consider
> your syntax significantly cleaner, or more productive?
So why is this style of syntax popular within scripting languages? (Lua, 
Julia, Ruby...)

Those are considered more productive.

> Perhaps people dismiss what you say because, despite your
> self-aggrandizing words, you've shown that you don't actually
> know C very well,

See the type syntax example below. How well do you need to know a 
language to see that that is just effing crazy? This is supposed to be a 
HLL, not a puzzle that needs to be solved or decoded via algorithms or 
employing tools!

> For someone who claims to want to discuss C objectively, you
> sure do make a lot of subjective statements.

Concerning type declaration syntax, lots of people including the C 
creators agree that it was misguided.

If lots of people agree, is that still being subjective? This is the 
example I think used in K&R:

  char *(*(**foo [][8])())[];

Most would consider this gobbledygook even if you know the rules. It is 
atrocious syntax. And what's 'foo' doing in the middle of it!

I think being defensive about it is being subjective, as you demonstrate 
here:

 >> [snip; don't care]

That is pretty much the attitude here in a nutshell.

What's often stated also is how successful C has been, but that doesn't 
magically make the syntax wonderful.

If DMR had instead produced a language that looked like mine (say like 
one of the Algols), and I came along in 2026 and proposed a syntax that 
looked like the above, what do you think the response would be?

I would rightly be laughed out of the forum.

So being 'objective' means disregarding history and widespread adoption. 
The latter doesn't make the language better, just more tolerated, with 
more effort put into tools to make it practical to use (with a nice 
sideline in teaching all its ins and outs).

Anyway, to me, pretty much the whole of C looked as badly and crudely 
put together as that, when I first came across it in 1982. My background 
had been with quite different languages.
Technical Details
Message-ID: <11auad0$3no1k$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> <11aqpl3$2gdup$1@dont-email.me> <11ardsd$26m$1@reader2.panix.com> <11arjmc$2qid7$1@dont-email.me> <11at5vi$5vu$1@reader2.panix.com>

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: Sat, 17 Oct 2026 00:01:52 +0100
Organization: A noiseless patient Spider
Lines: 59
Message-ID: <11auad0$3no1k$1@dont-email.me>
References: <119qf6l$2rmg3$1@dont-email.me> <11aqpl3$2gdup$1@dont-email.me>
 <11ardsd$26m$1@reader2.panix.com> <11arjmc$2qid7$1@dont-email.me>
 <11at5vi$5vu$1@reader2.panix.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 16 Oct 2026 23:01:53 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3924020"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+LesxtwvP4TSvUVm59bnl/"; posting-host="9fff42d3173963a8ee0c00ef9e61f4e2"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Wi1rM66hofjLAkpe+/NG6z5gGBk= sha256:zzIivmUPGEkjwa3N3azE1AXV+Rl8pedfMnMas1SH8Vk=
	sha1:ajET/HAz3cnjBZWL0Yftwx+b+c0= sha256:Zwg3n3XSlxesmiX4Wf3YXiOqAMCbGoVDBTG3ms9YfQk=
In-Reply-To: <11at5vi$5vu$1@reader2.panix.com>
Content-Language: en-GB