Article View: comp.std.c
Article #2291Re: comment style
From: Craig Burley
Date: Tue, 15 Jan 1991 17:12
Date: Tue, 15 Jan 1991 17:12
16 lines
1480 bytes
1480 bytes
In article <22@christmas.UUCP> rtm@christmas.UUCP (Richard Minner) writes: ...to keep this wonderous thread going (anyone keeping count?) there's another really super big advantage of // that I haven't seen mentioned. If you want to write a header for a function or file and include an example of usage that actually looks like regular code with normal comments, you can't do it with /* */ without resorting to some pretty ugly guck with #if/#endif. With // it's trivial. Yes, I use // in just that way. The neat thing is, the compiler doesn't have to support // as a comment delimiter! (Of course, that means the example won't QUITE look "like regular code with normal comments"...but it sure beats using /* without a closing */!) -- James Craig Burley, Software Craftsperson burley@ai.mit.edu
Technical Details
Message-ID:
<BURLEY.91Jan15121257@geech.ai.mit.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!wuarchive!usc!snorkelwacker.mit.edu!ai-lab!life!burleyReferences:
<1991Jan04.164355.15674@sco.COM> <1991Jan05.194321.12428@kithrup.COM> <17444:Jan804:03:3291@kramden.acf.nyu.edu> <22@christmas.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!wuarchive!usc!snorkelwacker.mit.edu!ai-lab!life!burley From: burley@geech.ai.mit.edu (Craig Burley) Newsgroups: comp.std.c Subject: Re: comment style Message-ID: <BURLEY.91Jan15121257@geech.ai.mit.edu> Date: 15 Jan 91 17:12:57 GMT References: <1991Jan04.164355.15674@sco.COM> <1991Jan05.194321.12428@kithrup.COM> <17444:Jan804:03:3291@kramden.acf.nyu.edu> <22@christmas.UUCP> Sender: news@ai.mit.edu Organization: Free Software Foundation 545 Tech Square Cambridge, MA 02139 Lines: 16 In-reply-to: rtm@christmas.UUCP's message of 9 Jan 91 06:12:26 GMT