From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Ag Ibragimov <agzam.ibragimov@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: implementing a reader macro
Date: Fri, 22 Jul 2022 16:32:01 -0400 [thread overview]
Message-ID: <jwv4jz8c2o4.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <m2r12dyorh.fsf@gmail.com> (Ag Ibragimov's message of "Fri, 22 Jul 2022 13:40:34 -0500")
> How difficult is it to implement a new reader macro for Elisp?
> The one I particularly wish to be ported from Clojure is the "discard
> macro" - `#_`. What it does is that it ignores the next form completely.
Does `clojure-mode` support that correctly?
Scheme has a similar construct and I found it difficult to make
`scheme-mode` handle it correctly (so: it doesn't).
I don't think we want to add to ELisp a feature that our support tools
can't handle well.
> It is a very nice way of (usually temporarily) commenting out sexps
> without disrupting the structure too much. Of course, we can employ nice
> tricks such as one described by Malabarba:
> http://endlessparentheses.com/a-comment-or-uncomment-sexp-command.html
> But wouldn't it be nice to have something even better?
I don't think this feature pays for itself, personally.
There are plenty of alternative solutions that don't require changing
the syntax of the language.
Stefan
next prev parent reply other threads:[~2022-07-22 20:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-22 18:40 implementing a reader macro Ag Ibragimov
2022-07-22 20:32 ` Stefan Monnier [this message]
2022-07-22 21:18 ` Jose A. Ortega Ruiz
2022-07-22 22:12 ` Ag Ibragimov
2022-07-22 23:07 ` Stefan Monnier
2022-07-22 20:51 ` Lars Ingebrigtsen
2022-07-22 22:16 ` Ag Ibragimov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv4jz8c2o4.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=agzam.ibragimov@gmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.