From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Daniel Colascione <dancol@dancol.org>
Cc: emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] master f6b5db6: Add support for generators
Date: Tue, 03 Mar 2015 23:51:17 -0500 [thread overview]
Message-ID: <jwva8zt74pm.fsf-monnier+emacsdiffs@gnu.org> (raw)
In-Reply-To: <54F621A9.90508@dancol.org> (Daniel Colascione's message of "Tue, 03 Mar 2015 13:03:37 -0800")
>> As I mentioned a bit further, the explanation about the difference
>> between an iterator and a generator clarifies this, but comes
>> a bit late.
> Right. I'm not sure that level of detail is appropriate for the chapter
> introduction though.
Right.
> I don't have one yet, and that's mostly because the higher-level
> facilities I want to build on top of generators don't exist yet.
Hmm... does that mean that the current code doesn't actually use the
finalizers yet?
> I added one already. Mind leaving it there?
Your choice.
>> Move the unwind-protect and the loop into a separate higher-order function.
> I'm not sure that would help.
The question is only whether it would work.
> We need to keep the `iter-yield' in the body of the calling function
> in order to be correct.
But `iter-yield' is still (lexically) in the body of the calling
function, passed as a callback to some new higher-order function.
I guess another way to ask the same question is to ask if things like
(mapcar (lambda (x) (iter-yield x)) list)
can be used.
Stefan
next prev parent reply other threads:[~2015-03-04 4:51 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20150302234252.19883.48595@vcs.savannah.gnu.org>
[not found] ` <E1YSZzA-0005BJ-Li@vcs.savannah.gnu.org>
2015-03-03 18:05 ` [Emacs-diffs] master f6b5db6: Add support for generators Stefan Monnier
2015-03-03 18:20 ` Daniel Colascione
2015-03-03 19:35 ` Stefan Monnier
2015-03-03 21:03 ` Daniel Colascione
2015-03-03 21:06 ` Daniel Colascione
2015-03-04 4:52 ` Stefan Monnier
2015-03-04 5:34 ` Daniel Colascione
2015-03-04 23:02 ` Stefan Monnier
2015-03-04 23:05 ` Daniel Colascione
2015-03-05 1:06 ` Stefan Monnier
2015-03-04 4:51 ` Stefan Monnier [this message]
2015-03-03 19:51 ` Artur Malabarba
2015-03-05 0:01 ` Michael Heerdegen
2015-03-21 5:52 ` Michael Heerdegen
2015-03-21 13:19 ` Stefan Monnier
2015-03-25 13:09 ` Michael Heerdegen
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=jwva8zt74pm.fsf-monnier+emacsdiffs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=dancol@dancol.org \
--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.