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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.50.25.129 with SMTP id c1mr937205igg.7.1409798244739; Wed, 03 Sep 2014 19:37:24 -0700 (PDT) X-Received: by 10.50.57.113 with SMTP id h17mr24109igq.0.1409798244633; Wed, 03 Sep 2014 19:37:24 -0700 (PDT) Path: border1.nntp.dca1.giganews.com!nntp.giganews.com!uq10no9189988igb.0!news-out.google.com!aw9ni0igc.0!nntp.google.com!uq10no9189979igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 3 Sep 2014 19:37:23 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=123.2.70.40; posting-account=S_MdrwoAAAD7T2pxG2e393dk6y0tc0Le NNTP-Posting-Host: 123.2.70.40 References: <8fd27434-43c2-4bd1-b72b-dd7a0ef5af75@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <65680926-cda9-40a6-8f45-3a1f80452020@googlegroups.com> Subject: Re: Is there a way to do large block of source code comments From: robin.vowels@gmail.com Injection-Date: Thu, 04 Sep 2014 02:37:24 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: number.nntp.dca.giganews.com comp.lang.ada:188854 Date: 2014-09-03T19:37:23-07:00 List-Id: On Thursday, September 4, 2014 1:32:21 AM UTC+10, Shark8 wrote: > On 02-Sep-14 18:07, r.nospam@gmail.com wrote: > > >> No, this was explicitly omitted. See the Ada-83 Rationale 2.1: "Single comments > > >> >that are larger than one line are not provided. Such comments would require a > > >> >closing comment delimiter and this would again raise the dangers associated with > > >> >the (unintentional) omission of the closing delimiter: entire sections of a > > >> >program could be ignored by the compiler without the programmer realizing it, so > > >> >that the program would not mean what he thinks. Long comments can be written as > > >> >a succession of single line comments, thus combining elegance with safety." > > > > > > 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! > > No, the above is a quotation from the Ada Rationale. But it's still hype. > It says that only single-line comments terminated by the end of the line > were chosen so that there was no way that closing a multiline comment > could be forgotten. Period. > > > Live parsing editors are useful tools, because they highlight > > code segments (including comments). > > What has this got to do with *anything* WRT comments? Um, comments highlighted in a different color from the code make it clear which is commented.