emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Elpa: Pinpoint semantics of `seq-subseq' for streams


From: Michael Heerdegen
Subject: Re: [PATCH] Elpa: Pinpoint semantics of `seq-subseq' for streams
Date: Fri, 16 Sep 2016 00:28:00 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

Clément Pit--Claudel <address@hidden> writes:

> > Instead, a simple loop incrementing a position variable or something 
> > like that might be more appropriate (efficient).
>
> Sure, but again: how is this related to lists vs strings? Lists need
> to be garbage collected just the same.

Yes, lists and streams (I guess you meant "streams"?) both potentially
leave behind an unnecessary bulk of garbage.  When a stream is bad, a
list is worse.

> > Instead, a simple loop incrementing a position variable or something
> > like that might be more appropriate (efficient).
>
> I'm not sure what you mean :\ Are you saying that sometime streams are
> not the right solution for a given problem? I agree fully :)

Yes, more or less.  And I want to get an idea of how often "sometimes"
is in the use cases where you want the negative indexes.

Michael.



reply via email to

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