[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: streams are cool, you could stream virtually anything!

From: Phillip Lord
Subject: Re: streams are cool, you could stream virtually anything!
Date: Thu, 05 Nov 2015 12:28:42 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Nicolas Petton <address@hidden> writes:

> Phillip Lord <address@hidden> writes:
>> I'd have a couple of questions with this approach. First, what happens
>> if the lambda *changes* the buffer? Mixing this form of mutability with
>> laziness is, I think, going to be unpredictable.
> I agree, but I don't see how that's any different from modifying the
> buffer while in a while loop?

Emacs is single threaded, so the only thing that can change the buffer
during a while loop is the stuff in the while loop. So, with m-buffer,
for instance, you get back a list of markers based on the world now.

With laziness, though, do the results of the stream depend on the state
of the buffer when the stream is created, realised, or the state of the
buffer now.

I don't know if this is a problem or not, which is why I am asking.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]