bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#44554: 27.1; Feature request: SRFI-62 style comments for Emacs Lisp.


From: Lars Ingebrigtsen
Subject: bug#44554: 27.1; Feature request: SRFI-62 style comments for Emacs Lisp.
Date: Tue, 10 Nov 2020 15:57:16 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Vladimir Nikishkin <lockywolf@gmail.com> writes:

> #;(defvar demo-variable nil
>   "This is a demo-variable declared to illustrate SRFI-62.")
> ```
>
> The special reader syntax "#;" means "please, ignore the next valid
> s-expression completely".

Sexp-based comments would certainly be nice, but I wonder whether
comment blocks would be even more useful (if we have to prioritise):

#| this is
a comment |#

The advantage is that you don't have to have syntactically valid things
in comment blocks, while #; requires that you do.  #; also looks like
slightly hard to read if you do stuff like

(foo #;(foobar
        ...
        1)
     zot)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

[Prev in Thread] Current Thread [Next in Thread]