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.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: G.B. Newsgroups: comp.lang.ada Subject: Re: Is there a way to do large block of source code comments Date: Mon, 1 Sep 2014 20:34:08 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: <1285756762431293678.582499nonlegitur-futureapps.invalid@reader80.eternal-september.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Mon, 1 Sep 2014 20:34:08 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="a90fc67f2a7b23cc7f548c1b10f6b5af"; logging-data="18047"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/7eLuG0dZnq9sDiwI4LwshBrIA9Ju+wgo=" User-Agent: NewsTap/3.5.5 (iPad) Cancel-Lock: sha1:T3INP4AgGloScld3xZLxPloNNAU= Xref: number.nntp.dca.giganews.com comp.lang.ada:188787 Date: 2014-09-01T20:34:08+00:00 List-Id: Niklas Holsti wrote: > > One of the worst mistakes in the programming field is the choice of the > name "comments" for the in-source documentation and description. > "Comments" suggests something secondary, incidental, unstructured, > incomplete. The notions once associated with commenting suggest rather the opposite of incidental, unstructured, or incomplete. Writing commentary, before the age of computers, indicated the highest degree of professionalism, both as regards the subject on which the comments were made as well as the forms of treatment. Today, the term still has a place in law, I think. So it is the programming profession that has neglected what commenting should mean. Perhaps it was a mistake to drop the word "comment" from most languages after Algol 60 instead of trying to formally extend its possibilities. Eiffel has tried to make it more useful with its "indexing" clause at the top of class definitions. Python stores a descriptive comment, a string, with every def. Ada 2012 aspect notation could add a tool-ready aspect that describes an entity in brief: procedure Read (..., Item : out T) with Comment => "... short description ...",