From: Jay Kamat <jaygkamat@gmail.com>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: emacs-devel@gnu.org
Subject: Re: dolist considered harmful
Date: Tue, 30 Oct 2018 16:24:10 -0700 [thread overview]
Message-ID: <86zhuvow6d.fsf@gmail.com> (raw)
In-Reply-To: <jwvwopzfftn.fsf-monnier+emacs@gnu.org>
Stefan Monnier writes:
> Since it can only be used when we're 100% sure that LIST is a LIST,
> (and who can be sure of such a thing in a dynamic language like Emacs
> Lisp), I think we'd be better off deprecating it and changing all uses
> of dolist with a clear while+cdr loop that everyone can understand.
I haven't been following the other discussion, but I think deprecating dolist
is a little extreme. I use dolist a lot because it makes a lot of things I
write a lot simpler (over using the loop macro or mapcar).
I suspect a lot of existing code out there uses dolist, a github search
suggests about 500k uses (although many of those are probably copies).
next prev parent reply other threads:[~2018-10-30 23:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-30 18:39 dolist considered harmful Stefan Monnier
2018-10-30 19:31 ` Eli Zaretskii
2018-10-30 23:24 ` Jay Kamat [this message]
2018-10-30 23:29 ` Noam Postavsky
2018-10-30 23:47 ` Drew Adams
2018-10-31 22:02 ` Garreau, Alexandre
2018-10-31 22:44 ` Noam Postavsky
2018-10-31 23:01 ` Garreau, Alexandre
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=86zhuvow6d.fsf@gmail.com \
--to=jaygkamat@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 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.