From: Ag Ibragimov <agzam.ibragimov@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: implementing a reader macro
Date: Fri, 22 Jul 2022 17:12:21 -0500 [thread overview]
Message-ID: <m2h738ztiy.fsf@gmail.com> (raw)
In-Reply-To: <jwv4jz8c2o4.fsf-monnier+emacs@gnu.org>
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> 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?
AFAIK it works very well in clojure-mode.
> I don't think this feature pays for itself, personally.
Well, to be honest, initially, it does look like a gimmick that doesn't add much
value. But once you get used to having it, it really feels nice.
> There are plenty of alternative solutions that don't require changing
> the syntax of the language.
Can you show some examples? I think most of them still require you to
change the structure - you either have to wrap the form or prepend every line, etc.
next prev parent reply other threads:[~2022-07-22 22:12 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
2022-07-22 21:18 ` Jose A. Ortega Ruiz
2022-07-22 22:12 ` Ag Ibragimov [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2h738ztiy.fsf@gmail.com \
--to=agzam.ibragimov@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).