🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #123

Re: Comment delimiters (was: Optimization by programmers)

#123
From: MitchAlsup
Date: Wed, 14 Oct 2026 22:43
32 lines
2520 bytes
quadibloc@invalid.com (John Savard) posted:

> 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.

On the other hand using « » ÷ ≠ ≤ ≥ ≡ would destroy the 1 char == 1 byte
philosophy of compilers and assemblers.
 
> 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: <1792017812-5857@newsgrouper.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!newsgrouper.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> <6acfc2b2.1547984@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!newsgrouper.org!.POSTED!not-for-mail
From: MitchAlsup <user5857@newsgrouper.org.invalid>
Newsgroups: comp.arch
Subject: Re: Comment delimiters (was: Optimization by programmers)
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> <6acfc2b2.1547984@news.eternal-september.org>
Date: Wed, 14 Oct 2026 22:43:32 GMT
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Message-ID: <1792017812-5857@newsgrouper.org>
Injection-Info: newsgrouper.org; mail-complaints-to="newsgrouper@yahoo.com"; posting-account=user5857
Injection-Date: Wed, 14 Oct 2026 22:43:32 GMT
User-Agent: Newsgrouper/0.9.0