From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: [Request] seq-map and mapcar with arbitrary number of sequences Date: Sat, 10 Oct 2015 19:58:55 +0200 Message-ID: <87si5ifvvk.fsf@fencepost.gnu.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1444502897 6496 80.91.229.3 (10 Oct 2015 18:48:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 10 Oct 2015 18:48:17 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 10 20:48:02 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 1ZkzBZ-0000ga-C0 for ged-emacs-devel@m.gmane.org; Sat, 10 Oct 2015 20:48:01 +0200 Original-Received: from localhost ([::1]:45858 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkzBY-00043d-Na for ged-emacs-devel@m.gmane.org; Sat, 10 Oct 2015 14:48:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33407) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkzB4-00042V-FE for emacs-devel@gnu.org; Sat, 10 Oct 2015 14:47:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZkzB3-0007Jc-KT for emacs-devel@gnu.org; Sat, 10 Oct 2015 14:47:30 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58478) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkzB3-0007JP-HT for emacs-devel@gnu.org; Sat, 10 Oct 2015 14:47:29 -0400 Original-Received: from localhost ([127.0.0.1]:44063 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.82) (envelope-from ) id 1ZkzB2-0006Bj-TE for emacs-devel@gnu.org; Sat, 10 Oct 2015 14:47:29 -0400 Original-Received: by lola (Postfix, from userid 1000) id 4C302E229A; Sat, 10 Oct 2015 19:58:55 +0200 (CEST) In-Reply-To: (John Wiegley's message of "Sat, 10 Oct 2015 10:47:19 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e 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:191162 Archived-At: "John Wiegley" writes: >>>>>> writes: > >> Furthermore, if anyone feels up to the task, I think it would make sense for >> the builtin mapc and mapcar too. > > Those two functions are used in a large number of places. Adding support for a > "&rest seqs" argument rather than "seq" could impact performance, as it now > has to walk a one-element seqs to get the seq it had directly before. I > believe it would add another cons cell to the memory footprint, to package the > argument? > > I'm fine with low-level functions preferring simplicity, since we have cl-lib > to provide higher-level versions that does not. The byte compiler should be able to squash the difference, right? -- David Kastrup