From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Filipp Gunbin Newsgroups: gmane.emacs.devel Subject: Re: streams are cool, you could stream virtually anything! Date: Fri, 06 Nov 2015 18:09:38 +0300 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> <877flwl7ee.fsf@web.de> <87y4ecglb5.fsf@petton.fr> <87ziys57hl.fsf@web.de> <87r3k36dzv.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1446822619 16972 80.91.229.3 (6 Nov 2015 15:10:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Nov 2015 15:10:19 +0000 (UTC) Cc: emacs-devel@gnu.org To: Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 06 16:10:05 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 1ZuieQ-0006MB-MF for ged-emacs-devel@m.gmane.org; Fri, 06 Nov 2015 16:10:02 +0100 Original-Received: from localhost ([::1]:39260 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuieQ-0001NZ-8A for ged-emacs-devel@m.gmane.org; Fri, 06 Nov 2015 10:10:02 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42257) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuieC-0001NN-N0 for emacs-devel@gnu.org; Fri, 06 Nov 2015 10:09:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zuie7-0001fJ-Nb for emacs-devel@gnu.org; Fri, 06 Nov 2015 10:09:48 -0500 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:55627) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zuie7-0001ew-JF for emacs-devel@gnu.org; Fri, 06 Nov 2015 10:09:43 -0500 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 2FB5720761 for ; Fri, 6 Nov 2015 10:09:42 -0500 (EST) Original-Received: from frontend2 ([10.202.2.161]) by compute2.internal (MEProxy); Fri, 06 Nov 2015 10:09:42 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.fm; h=cc :content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=nuH03 a74FXjBMMo93Bfu0QUhYXw=; b=bSYPDnTPLVbITRTkN85AqFFqMn3JekRGibWZD XI16cgh/7Hi3DHICMds/lZbIoQcMa/N8+NutyVkG3/NhiFuYRntNFs0ul7PBY5W+ CKmYfR1ggPGFQZLZLZ2rb4VAmyUCdFnFVTh9mj+yy3fTtBDuE76JwrCo8aFPch3N BvCwlQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=nuH03a74FXjBMMo93Bfu0QUhYXw=; b=IOpec pf0z633mmwtrh1c0nVyqOnpD7c5o7L1cgL0odThipNQLiro4d/FbuHYaXwAagAuu RBSkRka4G23p05Pb2HxeLZwvjsL59WZybSkcU8DpOQwpn3w1r3ZbTpyZ1z2qumVG IoN47SXTutKYcHW1F0MUkaMrbwaJ8ShVitNV1o= X-Sasl-enc: qwIXHmW9o7rfWKMT1ZNzF9S0vhXV4fptleVMUYsEGxoH 1446822581 Original-Received: from fgunbin.local (unknown [94.25.218.10]) by mail.messagingengine.com (Postfix) with ESMTPA id 6C014680128; Fri, 6 Nov 2015 10:09:41 -0500 (EST) In-Reply-To: <87r3k36dzv.fsf@web.de> (Michael Heerdegen's message of "Fri, 06 Nov 2015 03:47:00 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (darwin) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.28 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:193422 Archived-At: On 06/11/2015 03:47 +0100, Michael Heerdegen wrote: [...] > If not: FWIW, personally I prefer `stream-first' and `stream-rest' to > `stream-car' and `stream-cdr' because these different names underline > that streams are not conses. And that's an important aspect to keep in > mind. In particular, streams are immutable, but a function named > `stream-car' would somehow suggest the opposite. `...-car' and `...-cdr' suggests only the presence of car and cdr (or head and tail), not the mutability of these, and there could also be `set-first' and `set-rest', although the latter sounds awkward. SICP talks about lists and streams, showing they are different approaches to sequences, and defines similar operations on both of them - I think having car and cdr for both is a nice analogy. Filipp