From: Michael Heerdegen <michael_heerdegen@web.de>
To: emacs-devel@gnu.org
Subject: Re: Streams: add stream-delay and streams of directory files
Date: Fri, 04 Mar 2016 13:15:50 +0100 [thread overview]
Message-ID: <87k2licubt.fsf@web.de> (raw)
In-Reply-To: CAAdUY-Jqp1VidOvkQM+hnxhzXVhUoXkwRP=OwMU-CP6Jd-rM_w@mail.gmail.com
Artur Malabarba <bruce.connor.am@gmail.com> writes:
> Sorry if this is a silly question, but isn't stream-delay just
> reimplementing thunk.el (the functionality that stream itself is
> built-on)?
Yes, that's a very congruous question.
Let me add to Nicolas comment:
The semantics is very similar to that of `thunk-delay', and it serves
the same purpose at the end: delaying an expression. The idea behind
`stream-delay' was to transfer the idea of delaying to the level of
streams:
`stream-delay' takes an expression E that must (later) evaluate to a
stream S, and returns another stream S' (and not a thunk). And unlike
`thunk-delay', when referencing an element of S', E is _implicitly_
evaluated to get S.
I just defined that because it made sense for defining
`stream-of-directory-files'. Maybe you have a nicer idea for reaching
the same goal...?
Regards,
Michael.
next prev parent reply other threads:[~2016-03-04 12:15 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-11 13:32 Streams: add stream-delay and streams of directory files Michael Heerdegen
2016-02-11 13:36 ` Michael Heerdegen
2016-02-11 20:33 ` Nicolas Petton
2016-02-12 14:18 ` Michael Heerdegen
2016-02-13 19:25 ` Nicolas Petton
2016-02-14 12:03 ` Michael Heerdegen
2016-02-14 12:07 ` Nicolas Petton
2016-02-14 13:55 ` Nicolas Petton
2016-02-14 14:24 ` Michael Heerdegen
2016-02-24 16:38 ` Michael Heerdegen
2016-02-24 17:01 ` Nicolas Petton
2016-02-29 15:05 ` Nicolas Petton
2016-03-03 14:42 ` Nicolas Petton
2016-03-03 15:26 ` Michael Heerdegen
2016-03-03 15:29 ` Nicolas Petton
2016-03-03 22:05 ` Artur Malabarba
2016-03-04 9:02 ` Nicolas Petton
2016-03-04 12:15 ` Michael Heerdegen [this message]
2016-03-04 14:21 ` Artur Malabarba
2016-02-11 20:48 ` Eli Zaretskii
2016-02-11 21:10 ` Nicolas Petton
2016-02-11 21:22 ` Eli Zaretskii
2016-02-12 14:14 ` Michael Heerdegen
2016-02-12 15:22 ` Eli Zaretskii
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=87k2licubt.fsf@web.de \
--to=michael_heerdegen@web.de \
--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.