Article View: comp.std.c
Article #2268comment style
From: Tom Jaskiewicz
Date: Wed, 09 Jan 1991 21:15
Date: Wed, 09 Jan 1991 21:15
25 lines
1354 bytes
1354 bytes
My first impression of // comments was that they are a harmless addition
to the language. After reading some of the discussion in this newgroup
I now believe that they are not harmless. // comments would add no new
capabilities to the language (comments are already possible), but would
add an interesting set of interactions with other language features.
If you do add // comments to c, what does the following code do?
/* printf("One\n"); /* 1 */
printf("Two\n"); /* 2 */
/* printf("Three\n");
// printf("Four\n"); /* 4 */
printf("Five\n"); /* 5 */
// printf("Six\n"); /* 6
printf("Seven\n"); /* 7 */
/* printf("Eight\n");
// */ printf("Nine\n");
printf("Ten\n"); /* 10 */
This makes // look like a dangerous idea.
--
##########################################################################
# The doctrine of nonresistance against arbitrary power, and oppression is
# absurd, slavish, and destructive of the good and happiness of mankind.
# -- Article 10, Part First, Constitution of New Hampshire
Technical Details
Message-ID:
<4423@alliant.Alliant.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!think.com!linus!alliant!tjShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!think.com!linus!alliant!tj From: tj@Alliant.COM (Tom Jaskiewicz) Newsgroups: comp.std.c Subject: comment style Message-ID: <4423@alliant.Alliant.COM> Date: 9 Jan 91 21:15:22 GMT Organization: Alliant Computer Systems Corp. Lines: 25