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: Vladimir Nikishkin
Subject: bug#44554: 27.1; Feature request: SRFI-62 style comments for Emacs Lisp.
Date: Tue, 10 Nov 2020 23:11:45 +0800

Well, fontification usually solves the problem of "slightly hard to read" for me, because it's usually very different in co colour.

Speaking of block comments, I have no opinion about that. The point of s-comments is exactly that they keep sexp syntax intact. 
Block comments are not expected to do that (even for the human languages within the comments).

--
Yours sincerely, Vladimir Nikishkin
(Sent with Google mail mobile.)

Lars Ingebrigtsen <larsi@gnus.org> 于 2020年11月10日周二 22:57写道:
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]