From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: border2.nntp.ams.giganews.com!nntp.giganews.com!news.astraweb.com!border6.a.newsrouter.astraweb.com!cyclone01.ams2.highwinds-media.com!news.highwinds-media.com!voer-me.highwinds-media.com!npeersf04.am4!fx30.fr7.POSTED!not-for-mail From: Brian Drummond Subject: Re: Is there a way to do large block of source code comments Newsgroups: comp.lang.ada References: <8fd27434-43c2-4bd1-b72b-dd7a0ef5af75@googlegroups.com> User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-ID: NNTP-Posting-Host: 62.49.20.82 X-Complaints-To: abuse@demon.net X-Trace: 1409731484 62.49.20.82 (Wed, 03 Sep 2014 08:04:44 UTC) NNTP-Posting-Date: Wed, 03 Sep 2014 08:04:44 UTC Date: Wed, 03 Sep 2014 08:04:44 GMT X-Received-Body-CRC: 3949685238 X-Received-Bytes: 1788 X-Original-Bytes: 1690 Date: 2014-09-03T08:04:44+00:00 List-Id: On Tue, 02 Sep 2014 17:44:50 -0700, Jeffrey Carter wrote: > On 09/02/2014 05:07 PM, robin.vowels@gmail.com wrote: >> >> The above quotation is mere hype, like the author's justification for >> omitting exponentiation in Pascal, somehow more convenient to use log >> and exp instead! > > Funny. It's easy enough to find C++ guidelines that recommend avoiding > multi-line comments because they're error prone. When those who like to > use an error-prone language recommend against a construct because it's > error prone, it must really be bad. And if you MUST use block comments, use a language that counts up /* tokens, counts down */ tokens, and returns to code when count = 0. Modula-2 was one language that did this - OK, the tokens were (* and *) - but it was immune to the "oops I missed a block comment in that section, so my hack went haywire" errors... - Brian