From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.devel Subject: Re: streams are cool, you could stream virtually anything! Date: Thu, 5 Nov 2015 23:06:59 +0000 Message-ID: References: <87ziyuaqhl.fsf@petton.fr> <87fv0labbf.fsf@web.de> <87y4eda0kl.fsf@petton.fr> <8737wl9w5f.fsf@web.de> <87bnb8kd82.fsf@petton.fr> <87wptwirxw.fsf@petton.fr> Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c326362ae0840523d32f84 X-Trace: ger.gmane.org 1446764828 10775 80.91.229.3 (5 Nov 2015 23:07:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Nov 2015 23:07:08 +0000 (UTC) Cc: Michael Heerdegen , emacs-devel To: Nicolas Petton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 06 00:07:07 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZuTcY-0005JX-1a for ged-emacs-devel@m.gmane.org; Fri, 06 Nov 2015 00:07:06 +0100 Original-Received: from localhost ([::1]:35763 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuTcX-0004S9-Ez for ged-emacs-devel@m.gmane.org; Thu, 05 Nov 2015 18:07:05 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52883) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuTcT-0004Rz-OM for emacs-devel@gnu.org; Thu, 05 Nov 2015 18:07:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZuTcS-0004WG-Ug for emacs-devel@gnu.org; Thu, 05 Nov 2015 18:07:01 -0500 Original-Received: from mail-lb0-x236.google.com ([2a00:1450:4010:c04::236]:36032) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuTcS-0004W8-N2 for emacs-devel@gnu.org; Thu, 05 Nov 2015 18:07:00 -0500 Original-Received: by lbblt2 with SMTP id lt2so27250236lbb.3 for ; Thu, 05 Nov 2015 15:07:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=STOFdZsoObkH6rxQoa9pmBvYTHuZhMt5klOWKT6TXDo=; b=hBGWG4U4lMUNmXY2NOIpP/zOvULbGZENUrV4P/VJh0eoHEFsuvfakt4A2NeZTvMVkx xWCNL1DQSmGFyirKAEeMBzfLqgL3ES1s4hFIY2j65DH7JwYy11fGnfZILtlenX4fBGEB PmjJs79XTxCw/L9LTK3vXAldpD75tadseLqZ3vBwMnBQ4m/ZfMrh5/VPV/kMrjBQpaTr RSHu7mt0LC0+n31kpZbnBSUt4G54JzwkuH8MnsfCIsZ3QE65SOkn+317AVMt+tLm7hm3 uqGX+Ezh6KaZ4ttqaUcBYbUqjR4wxM9LtHI9LYsGro4idiZkHmMwP+1pSJ6KMyljMmga yv1Q== X-Received: by 10.112.157.105 with SMTP id wl9mr5107737lbb.2.1446764819961; Thu, 05 Nov 2015 15:06:59 -0800 (PST) Original-Received: by 10.112.63.70 with HTTP; Thu, 5 Nov 2015 15:06:59 -0800 (PST) Original-Received: by 10.112.63.70 with HTTP; Thu, 5 Nov 2015 15:06:59 -0800 (PST) In-Reply-To: <87wptwirxw.fsf@petton.fr> X-Google-Sender-Auth: Cih6ju615Dx6YjMmbNAWfAVUxM8 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::236 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:193354 Archived-At: --001a11c326362ae0840523d32f84 Content-Type: text/plain; charset=UTF-8 On 5 Nov 2015 11:52 am, "Nicolas Petton" wrote: > > Artur Malabarba writes: > > > I would expect it to be a macro, > > (prog1 (stream-car stream) (setq stream (stream-cdr stream))) > > My thought exactly. Do you think this should be in stream.el? Yes. It's a super convenient way to consume sequences. --001a11c326362ae0840523d32f84 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On 5 Nov 2015 11:52 am, "Nicolas Petton" <nicolas@petton.fr> wrote:
>
> Artur Malabarba <bruce= .connor.am@gmail.com> writes:
>
> > I would expect it to be a macro,
> > (prog1 (stream-car stream)=C2=A0 (setq stream (stream-cdr stream)= ))
>
> My thought exactly.=C2=A0 Do you think this should be in stream.el?

Yes. It's a super convenient way to consume sequences. <= /p> --001a11c326362ae0840523d32f84--