comp.lang.ada
 help / color / mirror / Atom feed
From: robin.vowels@gmail.com
Subject: Re: Is there a way to do large block of source code comments
Date: Thu, 4 Sep 2014 05:46:18 -0700 (PDT)
Date: 2014-09-04T05:46:18-07:00	[thread overview]
Message-ID: <26b20ef5-fbbb-4a5c-8ea7-3c61233cb858@googlegroups.com> (raw)
In-Reply-To: <lu93sg$nke$1@dont-email.me>

On Thursday, September 4, 2014 5:20:49 PM UTC+10, Georg Bauhaus wrote:
> On 04.09.14 04:37, r.nospam@gmail.com wrote:
> 
> > Um, comments highlighted in a different color from the code
> 
> > make it clear which is commented.
> 
> 
> 
> But highlighting doesn't make it clear what the "commented" text
> is about,

Just read the comment.

> and how it is structured.  Since the text is still there,

One would hope that the comment contains some text!

> the current reader (human debugger, reviewer, successor) frequently
> needs to understand it. (*)

Knowledge of English would help.

> Using comment indicators for disabling some source text is 
> the original sin.
>
> However, since the practice of "quickly disabling" a part of
> the source text during coding is commonplace,

And, I might add, during program testing, and in finding bugs in the compiler.

> languages could
> as well start supporting that! Specifically support that, I mean,
> not via generic comments. It needs to be the language, because the
> tools would have to be at least as good as the compiler and its
> error handling code. But current tools tend not to be language
> specific.
>
> Another technique that may do during coding, provided that there
> are no far reaching declarations that will vanish:
>
>    if False then
>       as_if (commented);
>       here_as (well);
>    end if;
> 
> The effect on a future reader will be just as annoying as a
> "commented multiline section" of code. Fans of editors may
> use folding to hide either from sight.


  reply	other threads:[~2014-09-04 12:46 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-01 17:24 Is there a way to do large block of source code comments gdotone
2014-09-01 19:04 ` Jeffrey Carter
2014-09-03  0:07   ` robin.vowels
2014-09-03  0:44     ` Jeffrey Carter
2014-09-03  1:15       ` gdotone
2014-09-03  4:17         ` J-P. Rosen
2014-09-03  8:04       ` Brian Drummond
2014-09-03  0:50     ` Adam Beneschan
2014-09-04  2:30       ` robin.vowels
2014-09-04 15:12         ` Adam Beneschan
2014-09-03  8:22     ` Georg Bauhaus
2014-09-03  8:28     ` Stefan.Lucks
2014-09-03  8:23       ` gdotone
2014-09-03  8:57         ` Pascal Obry
2014-09-03 15:12           ` Stefan.Lucks
2014-09-03 15:52             ` Pascal Obry
2014-09-03 17:48               ` Georg Bauhaus
2014-09-03 18:28                 ` Peter Chapin
2014-09-03 18:52               ` Adam Beneschan
2014-09-03 21:47                 ` gautier_niouzes
     [not found]                   ` <91e173a8-7451-4609-b141-ce3c6b19455f@googlegroups.com>
2014-09-04  5:56                     ` Pascal Obry
2014-09-03 22:42                 ` Georg Bauhaus
2014-09-03 21:02               ` Stefan.Lucks
2014-10-01 21:15                 ` Randy Brukardt
2014-09-03 16:58       ` Jeffrey Carter
2014-09-04 18:19       ` Keith Thompson
2014-09-03 15:32     ` Shark8
2014-09-04  2:37       ` robin.vowels
2014-09-04  7:20         ` Georg Bauhaus
2014-09-04 12:46           ` robin.vowels [this message]
2014-09-04 15:44             ` G.B.
2014-09-12  2:52         ` Shark8
2014-09-01 19:08 ` Niklas Holsti
2014-09-01 20:34   ` G.B.
2014-09-01 20:53     ` Niklas Holsti
2014-09-02 13:14       ` G.B.
2014-09-02 14:38         ` kalvin.news
2014-09-02 23:33         ` Randy Brukardt
2014-09-03  8:17           ` Georg Bauhaus
2014-09-01 21:15   ` Simon Wright
2014-09-02 15:01   ` Adam Beneschan
2014-09-02 16:35     ` Simon Wright
2014-09-02 17:14     ` Jeffrey Carter
2014-09-02 19:02     ` Niklas Holsti
2014-09-02 20:10       ` mockturtle
2014-09-02 23:36     ` Randy Brukardt
2014-09-01 19:13 ` Anh Vo
2014-09-01 21:04 ` gdotone
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox