[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Streams: add stream-delay and streams of directory files
From: |
Michael Heerdegen |
Subject: |
Re: Streams: add stream-delay and streams of directory files |
Date: |
Fri, 04 Mar 2016 13:15:50 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (gnu/linux) |
Artur Malabarba <address@hidden> 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.