Path: 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: 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 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