From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: cl-dolist, dolist, cl-return,
Date: Wed, 08 Jul 2015 12:25:08 +0200 [thread overview]
Message-ID: <87k2ub2bgb.fsf@nl106-137-147.student.uu.se> (raw)
In-Reply-To: jwvy4irs5yh.fsf-monnier+gmane.emacs.help@gnu.org
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> Just once. Besides inefficiency, evaluating it
>> every time would lead to wrong results.
>
> Right, the question often makes sense for loop
> boundary computations, but for this specific case,
> if you think enough about it, it makes no sense to
> re-evaluate it: you'd have to use an index into the
> list, and at each iteration, increment the index,
> recompute the list, and do an (nth <index> <list>),
> which would overall be *really* inefficient.
No, of course I don't want to re-evaluate it! I didn't
think it did re-evaluate, but I wasn't sure so
I thought about putting it in a `let' before
asking here. It is good I don't have to.
--
underground experts united
http://user.it.uu.se/~embe8573
next prev parent reply other threads:[~2015-07-08 10:25 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-08 0:14 cl-dolist, dolist, cl-return, Emanuel Berg
2015-07-08 0:31 ` John Mastro
2015-07-08 3:09 ` Stefan Monnier
2015-07-08 10:25 ` Emanuel Berg [this message]
2015-07-08 14:44 ` Stefan Monnier
2015-07-08 23:19 ` Emanuel Berg
2015-07-09 1:49 ` John Mastro
2015-07-09 22:00 ` Emanuel Berg
[not found] ` <mailman.6636.1436479362.904.help-gnu-emacs@gnu.org>
2015-07-10 18:44 ` Barry Margolin
2015-07-11 18:52 ` Emanuel Berg
2015-07-10 16:57 ` Stefan Monnier
2015-07-08 10:23 ` Emanuel Berg
[not found] <mailman.6511.1436314595.904.help-gnu-emacs@gnu.org>
2015-07-08 3:25 ` Pascal J. Bourguignon
2015-07-08 10:17 ` Emanuel Berg
2015-07-08 14:02 ` Drew Adams
2015-07-08 23:10 ` Emanuel Berg
[not found] ` <mailman.6588.1436397019.904.help-gnu-emacs@gnu.org>
2015-07-08 23:56 ` Pascal J. Bourguignon
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=87k2ub2bgb.fsf@nl106-137-147.student.uu.se \
--to=embe8573@student.uu.se \
--cc=help-gnu-emacs@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.
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).