🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #572

Re: Taming The Switch-Statement

#572
From: Janis Papanagnou
Date: Mon, 19 Oct 2026 22:35
59 lines
4113 bytes
On 2026-10-19 19:22, Dan Cross wrote:
> In article <11b500f$216c4$1@dont-email.me>, bart  <bc@freeuk.com> wrote:
[...]
>> I also never used Algol68; I'd only seen it in a book.
> 
> You said yourself you modeled your language on Algol68; whether
> you had used it or not is irrelevant.

It may be worth the observation we could make here in the flood of
bart's posts; most (if not all) features or ideas he seems to have
adopted only on a lexical or syntactical level. Given what he gave
as examples I have strong doubts that this should be attributed to
Algol 68 in its "whole glory". - Syntactical inspiration; maybe. -
More than that? - I'd be astonished.

[...]
> 
> One final quote from HOPL:
> |Although we entertained occasional thoughts about implementing
> |one of the major languages of the time like Fortran, PL/I, or
> |Algol 68, such a project seemed hopelessly large for our
> |resources: much simpler and smaller tools were called for.  All
> |these languages influenced our work, but it was more fun to do
> |things on our own.
> 
> So, they were aware of all the languages you've cited as
> influences.  And yet they decided to do things differently.

Somewhere in a (meanwhile historic; 1990's?) document I read about
someone (D.R.?) say that the influence of Algol 68 would be hardly
seen in practice (or some such). - It's generally hard to tell if
someone adopted concepts from some another specific language or
read the language description to just dismiss all their ideas. ;-)
In case of "C" and Algol 68, while I indeed see a couple adopted
things, they are so rare, lacking the semantic context, or have
been realized in a very stripped down variant, that it's hard to
speak about being (in a more substantial way) "influenced" by it.

To not stress my brain unnecessarily here's what a search suggests:
Type Composition, Unions and Casts, Syntax and Operators, and Type
Names & Structure. (I could add a few more, but I'd keep it terse.)

Type Compositions: fine, but also no rocket science back then.
Unions: a completely different concept in "C".
Casts: hardly necessary in Algol 68 (primarily used for references).
Syntax: beyond block structure, a completely different thing in "C".
Operators: Not comparable in many respects.
Type Names: 'bool', 'string', 'complex', etc., in original "C"? No.

So I agree with the mentioned paper that it's hard to find this
Algol 68 inspiration in "C"; and certainly not as a characterizing
property of the language. With knowledge and a sharp eye you just
find some (often only faint) traces as remains (that might as well
have had another origin in some cases as we may infer from the list).

Janis

> [...]
Technical Details
Message-ID: <11b65v0$1kr9u$8@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> <11b0mfv$j5ll$1@dont-email.me> <11b3r71$6me$1@reader2.panix.com> <11b500f$216c4$1@dont-email.me> <11b5jl1$s7r$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: Janis Papanagnou <janis_papanagnou+ng@hotmail.com>
Newsgroups: comp.lang.c
Subject: Re: Taming The Switch-Statement
Date: Tue, 20 Oct 2026 00:35:12 +0200
Organization: A noiseless patient Spider
Lines: 59
Message-ID: <11b65v0$1kr9u$8@dont-email.me>
References: <119qf6l$2rmg3$1@dont-email.me> <11b0mfv$j5ll$1@dont-email.me>
 <11b3r71$6me$1@reader2.panix.com> <11b500f$216c4$1@dont-email.me>
 <11b5jl1$s7r$1@reader2.panix.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 19 Oct 2026 22:35:12 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="1731902"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19YprKrRD2dukHRrDg+ZtvT"; posting-host="9a1787de1638a6d9f83c958712c1b12a"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:2Z5ZMBpiaZHBehF2THxkCmPPIjw= sha256:PxwHtN8xRKmKfsKDne27YroB8vgOVrwPlrof8j9l2l0=
	sha1:9RVibURlAVjuOPi5wG5jk8M0Vls= sha256:GVlmBz+q8+cOXZBH009qMvX9bXZD43uWVAJh7QJGOHk=
Content-Language: en-US
In-Reply-To: <11b5jl1$s7r$1@reader2.panix.com>