🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #2267

Re: comment style

#2267
From: Alan J Rosenthal
Date: Wed, 09 Jan 1991 22:33
21 lines
965 bytes
Sigh, it is not the case that `//' commenting would always require fewer
characters.  Consider the following (blecherous) style:

/*
Once upon a time, in a land far away,
there was a C compiler.  This compiler
compiled many programs and had many
happy users.
*/

Compare that to this:

// Once upon a time, in a land far away,
// there was a C compiler.  This compiler
// compiled many programs and had many
// happy users.

I count 6 extra characters in the first case, including newlines,
and 12 in the second.

ajr
Technical Details
Message-ID: <1991Jan9.173324.5964@jarvis.csri.toronto.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!dgp.toronto.edu!flaps
References: <613@caslon.cs.arizona.edu> <1050:Jan701:40:4791@kramden.acf.nyu.edu> <616@caslon.cs.arizona.edu> <17968:Jan804:38:1591@kramden.acf.nyu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!dgp.toronto.edu!flaps
Newsgroups: comp.std.c
From: flaps@dgp.toronto.edu (Alan J Rosenthal)
Subject: Re: comment style
Message-ID: <1991Jan9.173324.5964@jarvis.csri.toronto.edu>
References: <613@caslon.cs.arizona.edu> <1050:Jan701:40:4791@kramden.acf.nyu.edu> <616@caslon.cs.arizona.edu> <17968:Jan804:38:1591@kramden.acf.nyu.edu>
Date: 9 Jan 91 22:33:25 GMT
Lines: 21