🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #111

Re: Comment delimiters (was: Optimization by programmers)

#111
From: John Savard
Date: Wed, 14 Oct 2026 18:07
26 lines
2517 bytes
On Wed, 14 Oct 2026 12:14:30 -0400, George Neuner
<gneuner2@comcast.net> wrote:

>Seriously, no thoughts on block comments?  Shouldn't every language be
>forced to use  /* */

Using pairs of special characters for *any* purpose, from ** for
exponentiation in FORTRAN onwards, and including <= and >= as
relational operators, vastly complicates the syntax decoding of
languages.

Of course, even at
http://www.quadibloc.com/comp/lngint.htm
I couldn't _entirely_ avoid compounds of special characters. So what I
did was adopt systematic rules:
Only ?, @, and & can begin multi-character strings which are to be
treated as a single character. @" is used for //, and @< and @> are
used for /* and */. (The @ sign is generally used only for tokens
which are "outside" of actual statements, at the upper level of the
syntax.) &LE and &GE are used for <= and >=.

Incidentally, C didn't invent /* and */; it got them from PL/I,
although no doubt PL/I got them from some representation or other of
ALGOL.

John Savard
Technical Details
Message-ID: <6acfc2b2.1547984@news.eternal-september.org>
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: <1791742457-5857@newsgrouper.org> <11agm4p$2tfut$1@dont-email.me> <11ahs8q$38ir0$4@dont-email.me> <11aig3c$3hdcn$1@dont-email.me> <11aiqc0$3kr94$3@dont-email.me> <179190779286.25645.14465927900754526737@media.vsta.org> <179190779286.25645.14465927900754526737@media.vsta.org> (message from Andy Valencia <vandys@vsta.org> <jwvjynl2cg0.fsf-monnier+comp.arch@gnu.org> <808vclt9i2mso89n1itvnvos5j88g1mopl@4ax.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: quadibloc@invalid.com (John Savard)
Newsgroups: comp.arch
Subject: Re: Comment delimiters (was: Optimization by programmers)
Date: Wed, 14 Oct 2026 18:07:31 GMT
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <6acfc2b2.1547984@news.eternal-september.org>
References: <1791742457-5857@newsgrouper.org> <11agm4p$2tfut$1@dont-email.me> <11ahs8q$38ir0$4@dont-email.me> <11aig3c$3hdcn$1@dont-email.me> <11aiqc0$3kr94$3@dont-email.me> <179190779286.25645.14465927900754526737@media.vsta.org> <179190779286.25645.14465927900754526737@media.vsta.org> (message from Andy Valencia <vandys@vsta.org> <jwvjynl2cg0.fsf-monnier+comp.arch@gnu.org> <808vclt9i2mso89n1itvnvos5j88g1mopl@4ax.com>
Injection-Date: Wed, 14 Oct 2026 18:07:32 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="1823542"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18PUnaBa2Cm4t+MZL3+TREeQSVgXqHO/qg="; posting-host="ec9e08968ddb85af9c4b3dfaa1134305"
Cancel-Lock: sha1:9bsi9YWj5B/wcKeliU/cC4Pc60E= sha256:Swyw7zGovNMpXcUxQKCY1sAV7HVRkUgmwAjvHfF3e1s=
	sha1:SFbzHGXi26sAgjiaBqJm/hHkrGE= sha256:sY0cU7Yyc3InA7mCNNDeliH1uRw0MukiTuEO5l7l0YI=
X-Newsreader: Forte Free Agent 1.1/32.230