Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Block comments ala Ray
- X-seq: zsh-workers 48015
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Block comments ala Ray
- Date: Fri, 12 Feb 2021 08:46:15 +0100
- Archived-at: <https://zsh.org/workers/48015>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2021-02/CAN%3D4vMq15ThES%2BOqwk4JC8WiAZJbrDtPF6wFzqu%2B-LFqnUMaUw%40mail.gmail.com>
- In-reply-to: <20210212074031.7746vg37xykniem5@chazelas.org>
- List-id: <zsh-workers.zsh.org>
- References: <CAH+w=7YZREq7FbJCCoWoJ-vQ7+P5Z=_mKB-aStoMiBRupqD_wA@mail.gmail.com> <CAN=4vMonpZHPSarsC778_GMbD_h4ioTwT+bTFU=FZ7_zbXaMqQ@mail.gmail.com> <CAH+w=7Zd2gY-s5T1dDNEEujAh6197MzrUD-iZrVwZLzD=L7xVQ@mail.gmail.com> <CAN=4vMoYj3WbBk3BL98buiYcf7rkLtw=b9v_f0p1C4zqYRB7xg@mail.gmail.com> <20210212074031.7746vg37xykniem5@chazelas.org>
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