From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Nic Ferrier <nferrier@ferrier.me.uk>
Cc: emacs-devel@gnu.org
Subject: Re: anaphora in emacs-lisp?
Date: Sat, 09 Aug 2014 08:58:52 -0400 [thread overview]
Message-ID: <jwvha1l4yg0.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87lhqyg1yr.fsf@ferrier.me.uk> (Nic Ferrier's message of "Fri, 08 Aug 2014 21:29:00 +0100")
> Is there any objection to us adding anaphora to EmacsLisp?
I don't really want to veto it, but I'm not thrilled about it, because
I don't like introducing variables whose name is not provided by the
macro caller (and I find the benefit of things like `aif' rather small).
But maybe the new `if-let' (in subr-x.el) satisfies your needs:
(aif E1 E2 E3) ~= (if-let ((it E1)) E2 E3)
> I have just written an alias for ibuffer's functions for about the
> 50-millionth time.
Please submit those packages incrementally (say by groups of 1 million),
so we're not drowned.
Stefan
next prev parent reply other threads:[~2014-08-09 12:58 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-08 20:29 anaphora in emacs-lisp? Nic Ferrier
2014-08-09 2:57 ` Thien-Thi Nguyen
2014-08-09 12:58 ` Stefan Monnier [this message]
2014-08-09 17:24 ` Richard Stallman
2014-08-10 23:18 ` Josh
2014-08-11 1:46 ` Richard Stallman
2014-08-11 7:09 ` David Kastrup
2014-08-13 3:55 ` Richard Stallman
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=jwvha1l4yg0.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=nferrier@ferrier.me.uk \
/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.