[TUHS] // comment in C++
scj at yaccman.com
Thu Feb 9 09:39:13 AEST 2017
I remember some discussion about this. In reality, a C comment
really requires you to type 8 characters, because putting anything
adjacent to the /* or */ looks terrible. Many languages used single
characters (e.g., # for make). The argument was "if you make
comments easier to type, you'll get more of them in the code" (viz.
the Unix kernel). I'm guessing Bjarne was aware of these
discussions, although I don't remember specifically that he was...
----- Original Message -----
From: arnold at skeeve.com
To:<tuhs at minnie.tuhs.org>, <rminnich at gmail.com>
Sent:Wed, 08 Feb 2017 11:17:28 -0700
Subject:Re: [TUHS] // comment in C++
ron minnich <rminnich at gmail.com> wrote:
> I've always wondered if this was done in honor of JCL, as sort of a
> the dd command. Anyone know?
I'm fairly certain it was originally in BCPL.
You could just drop a note to Bjarne Stroustrup and ask. :-)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the TUHS