emacs-devel
[Top][All Lists]
Advanced

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

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


From: Michael Heerdegen
Subject: Re: streams are cool, you could stream virtually anything!
Date: Thu, 05 Nov 2015 00:34:20 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Nicolas Petton <address@hidden> writes:

> Indeed!  Could I by any chance get another pull request from you on
> GitHub?

Of course.  Are you ok when `stream-pop' would raise a (newly defined)
error when called on an empty stream?

The problem is how one can notice when a stream has run out of elements
when calling `stream-pop'.  We could either just return nil (bad,
because the stream could also generate nil if non-empty), return a
dedicated flag (like an uninterned symbol that is internal to
stream.el), or just signal a dedicated error that the programmer has to
catch.  I vote for the third alternative.


Michael.




reply via email to

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