🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #233

Re: Comment delimiters

#233
From: Dan Cross
Date: Tue, 20 Oct 2026 01:43
26 lines
1990 bytes
In article <6ad5d644.366843@news.eternal-september.org>,
John Savard <quadibloc@invalid.com> wrote:
>On Sun, 18 Oct 2026 22:54:24 -0400, Robert Finch <robfi680@gmail.com>
>wrote:
>
>>I like the C/C++ style comments. It is handy to have the two types of 
>>comments. // and /* */. I use // for almost all comments, then /* */ to 
>>comment out a block of code for debugging.
>
>It should be noted that C originally only had /* and */. // was added
>with C++, and then proved so popular that it was then added to some
>versions of C.

Sorry, a minor historical quibble: `/* ... */` came to C via
PL/1, which the creators of C had used on the Multics project.
The `//` comment delimiters actually came from BCPL, C's
almost-immediate antecedent, but for whatever reason they
preferred the PL/1 style.

C++ picked resurrected the BCPL-style delimiters, up, and as you
noted, they were subsequently added into C.  Incidentally, BCPL
gained the PL/1-style comment delimiters sometime after C became
popular.

	- Dan C.
Technical Details
Message-ID: <11b6gvr$j4i$1@reader2.panix.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!panix!.POSTED.spitfire.i.gajendra.net!not-for-mail
References: <1791742457-5857@newsgrouper.org> <6ad3360e.5069500@news.eternal-september.org> <11b40p0$1mopb$1@dont-email.me> <6ad5d644.366843@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!panix!.POSTED.spitfire.i.gajendra.net!not-for-mail
From: cross@spitfire.i.gajendra.net (Dan Cross)
Newsgroups: comp.arch
Subject: Re: Comment delimiters
Date: Tue, 20 Oct 2026 01:43:23 -0000 (UTC)
Organization: PANIX Public Access Internet and UNIX, NYC
Message-ID: <11b6gvr$j4i$1@reader2.panix.com>
References: <1791742457-5857@newsgrouper.org> <6ad3360e.5069500@news.eternal-september.org> <11b40p0$1mopb$1@dont-email.me> <6ad5d644.366843@news.eternal-september.org>
Injection-Date: Tue, 20 Oct 2026 01:43:23 -0000 (UTC)
Injection-Info: reader2.panix.com; posting-host="spitfire.i.gajendra.net:166.84.136.80";
	logging-data="19602"; mail-complaints-to="abuse@panix.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: cross@spitfire.i.gajendra.net (Dan Cross)