Article View: comp.arch
Article #211Re: Algol 68 (was Re: Documentation)
From: Lawrence D’Oliveiro
Date: Mon, 19 Oct 2026 01:54
Date: Mon, 19 Oct 2026 01:54
29 lines
3008 bytes
3008 bytes
On Mon, 19 Oct 2026 00:18:32 GMT, John Savard wrote:
> Obviously, there's no way one can enable a compiler to flag logic
> errors in programs. A Turing-complete language can calculate
> anything, so how can it tell you that you were calculating this when
> you wanted to calculate that?
All the Algol 68 two-level grammar approach was trying to do was
formalize rules that were already being spelled out in narrative text
in other contemporary (and subsequent) language specifications. Basic
things like
* A name for something must be declared before it can be referenced.
* Types of expected versus actual values must be compatible, with
some predefined set of implicit conversions allowed (e.g.
passing/assigning an integer where a float value is expected, but
not the other way round).
* A redeclaration of a name in an inner scope shadows (makes
inaccessible for the duration) a definition in an outer scope.
There was (and still is) the debate over what is “syntax” and what is
“semantics”? Algol 68 was just trying to push the boundary to take
some of what was thought to be “semantics” and show that it was just
“syntax”, after all.
So you see, they were not trying to do overly clever stuff like the
Java compiler insisting that a variable could possibly be accessed
before its first assignment, and this can’t be allowed, when it’s
quite apparent to any human reader that can follow the program logic,
that no such situation can occur.
Technical Details
Message-ID:
<11b3t7o$1lgro$2@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-mailReferences:
<2026Oct13.104347@mips.complang.tuwien.ac.at> <11au1vu$3ks5m$2@dont-email.me> <11aunpn$8c6$1@reader2.panix.com> <1792257076-5857@newsgrouper.org> <11b0bd3$b5b$1@reader2.panix.com> <1792265982-5857@newsgrouper.org> <11b0nak$iems$9@dont-email.me> <kqg9dl5oj9l0dih5kvnrif2fv91ns8lgs3@4ax.com> <6ad5609b.8505984@news.eternal-september.org>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: Lawrence D’Oliveiro <ldo@nz.invalid> Newsgroups: comp.arch Subject: Re: Algol 68 (was Re: Documentation) Date: Mon, 19 Oct 2026 01:54:01 -0000 (UTC) Organization: A noiseless patient Spider Lines: 29 Message-ID: <11b3t7o$1lgro$2@dont-email.me> References: <2026Oct13.104347@mips.complang.tuwien.ac.at> <11au1vu$3ks5m$2@dont-email.me> <11aunpn$8c6$1@reader2.panix.com> <1792257076-5857@newsgrouper.org> <11b0bd3$b5b$1@reader2.panix.com> <1792265982-5857@newsgrouper.org> <11b0nak$iems$9@dont-email.me> <kqg9dl5oj9l0dih5kvnrif2fv91ns8lgs3@4ax.com> <6ad5609b.8505984@news.eternal-september.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Mon, 19 Oct 2026 01:54:01 +0000 (UTC) Injection-Info: dont-email.me; logging-data="1753976"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX191XsP3/2TbqEfXfVopEki4"; posting-host="7582df13bf715312ab5ab1245fb66130" User-Agent: Pan/0.165 (Kostiantynivka) Cancel-Lock: sha1:GcK99jANy+aYYZ0FiZwr0WinMnY= sha256:JUXGu0hPkyozW8lfGliBjWUivapC1iTmfL4IbQeEW/g= sha1:5vZhc8lWqWZqma0a1E+QNLzVvpQ= sha256:hVDfKso55NgJB8XEKbthSp84eE4KKyei6KlH50RsTGE=