[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.
- Re: ELPA policy, (continued)
- Re: ELPA policy, Achim Gratz, 2015/11/09
- Re: ELPA policy, Eli Zaretskii, 2015/11/09
- Re: ELPA policy, David Engster, 2015/11/09
- Re: ELPA policy, Eli Zaretskii, 2015/11/09
- Re: ELPA policy, David Engster, 2015/11/09
- Re: ELPA policy, Eli Zaretskii, 2015/11/09
- Re: ELPA policy, Rasmus, 2015/11/09
- Re: ELPA policy, Achim Gratz, 2015/11/09
- streams and generators (was: streams are cool, you could stream virtually anything!), Michael Heerdegen, 2015/11/05
- Re: streams and generators, Dmitry Gutov, 2015/11/05
- Re: streams are cool, you could stream virtually anything!,
Michael Heerdegen <=
- Re: streams are cool, you could stream virtually anything!, Nicolas Petton, 2015/11/05
- Re: streams are cool, you could stream virtually anything!, Artur Malabarba, 2015/11/05
- Re: streams are cool, you could stream virtually anything!, Nicolas Petton, 2015/11/05
- Re: streams are cool, you could stream virtually anything!, raman, 2015/11/05
- Re: streams are cool, you could stream virtually anything!, Michael Heerdegen, 2015/11/05
- Re: streams are cool, you could stream virtually anything!, Nicolas Petton, 2015/11/05
- Re: streams are cool, you could stream virtually anything!, Artur Malabarba, 2015/11/05
- Re: streams are cool, you could stream virtually anything!, T.V Raman, 2015/11/05
- Re: streams are cool, you could stream virtually anything!, Artur Malabarba, 2015/11/05
- Re: streams are cool, you could stream virtually anything!, T.V Raman, 2015/11/05