Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Block comments ala Ray



On Fri, Feb 12, 2021 at 8:40 AM Stephane Chazelas <stephane@xxxxxxxxxxxx> wrote:
>
> 2021-02-12 07:41:50 +0100, Roman Perepelitsa:
> [...]
> > And almost never like this:
> >
> >   /*
> >   Lorem ipsum
> >   dolor sit amet
> >   */
> >
> > So block comments in my experience are most often used as if they were
> > single-line comments.
> [...]
>
> Block comments are useful to comment out sections of code

Indeed. Some projects ban block comments from committed code
specifically to allow one to easily disable a block of code during
development. In C we can employ the preprocessor for this purpose
(which allows for arbitrary nesting) but not all languages are so
lucky.

Roman.




Messages sorted by: Reverse Date, Date, Thread, Author