From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bozhidar Batsov Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] sequence manipulation functions Date: Wed, 12 Nov 2014 21:12:14 +0200 Message-ID: References: <87oasmmwzt.fsf@gmail.com> <87bnolslph.fsf@gmail.com> <87zjc2dic0.fsf@gmail.com> <87ioimtzu0.fsf@gmail.com> <87lhngcnrc.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="5463b10e_12200854_2c10" X-Trace: ger.gmane.org 1415819576 15382 80.91.229.3 (12 Nov 2014 19:12:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Nov 2014 19:12:56 +0000 (UTC) Cc: Emacs developers To: Nicolas Petton , Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 12 20:12:49 2014 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 1XodLU-0008Di-IY for ged-emacs-devel@m.gmane.org; Wed, 12 Nov 2014 20:12:48 +0100 Original-Received: from localhost ([::1]:56378 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XodLU-0005z8-3Q for ged-emacs-devel@m.gmane.org; Wed, 12 Nov 2014 14:12:48 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36884) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XodLA-0005yx-OA for emacs-devel@gnu.org; Wed, 12 Nov 2014 14:12:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XodL1-0003Xe-Bs for emacs-devel@gnu.org; Wed, 12 Nov 2014 14:12:28 -0500 Original-Received: from mail-wi0-x229.google.com ([2a00:1450:400c:c05::229]:38018) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XodL1-0003Ue-0M for emacs-devel@gnu.org; Wed, 12 Nov 2014 14:12:19 -0500 Original-Received: by mail-wi0-f169.google.com with SMTP id n3so5960055wiv.2 for ; Wed, 12 Nov 2014 11:12:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:message-id:in-reply-to:references:subject :mime-version:content-type; bh=Di9mqX4p5BgVJParaEpnwNKnBv+eTs9FtRLz6/402MA=; b=wa1hXXR8snBVehbMb8Fzc0EKm9/iC1mawRAlmNfcwc2MV1Zvdk6MB+PmmYmzVUsrr0 FjM9IhxcCcFDOu1VqLcABVbS1rNY1c+GNcD4ui3b7bbpS5zWgQrOqamXLJ6fEvgU49O1 iUTgqyVTM3TYPd+WyEuW6tqANB4+Co+lhyUPLM5cFF5FSuXe2Ut1kU90Pemh2q0jRfUU O1U80JnJJL6jGOQJ5qE01PabHQBeY6iYVWGDNpULVt44L7579qhuMU+KrEDCmlWj0saH LWTUThRLBXqwCRCYqeM/B/vXRTmJiaeCvwmcsKaWxp/mavjXoJJScrJpQlbtUBpWt7Ey LHCQ== X-Received: by 10.194.59.81 with SMTP id x17mr64764926wjq.91.1415819537486; Wed, 12 Nov 2014 11:12:17 -0800 (PST) Original-Received: from bozhidar-mini.local ([93.123.71.105]) by mx.google.com with ESMTPSA id s8sm32562656wjx.9.2014.11.12.11.12.15 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Nov 2014 11:12:16 -0800 (PST) In-Reply-To: <87lhngcnrc.fsf@gmail.com> X-Mailer: Airmail (249) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::229 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:176838 Archived-At: --5463b10e_12200854_2c10 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I don=E2=80=99t see here common sequence functions like take-while, drop-= while, remove (the opposite of filter), mapcat, flatten, etc.=C2=A0 The clojure standard library and dash.el can be used as reference for add= ing other useful functions as well. Such a library should eliminate the n= eed for third-party libs like =60dash.el=60. I find it amusing that there= were suggestions about a similar library last year and they were quickly= shot down=E2=80=A6 Anyways, for the prefixing to make sense functions like mapcar, =C2=A0map= c and friends should be aliased as well (ideally with names like =60seq-m= ap=60, =60sea-each=60, etc). =C2=A0 Another thing to consider - if you want the library to be adopted quickly= it might make sense to distribute it as a ELPA package for older Emacsen= . =E2=80=94=C2=A0 Cheers, Bozhidar On November 12, 2014 at 19:50:16, Nicolas Petton (petton.nicolas=40gmail.= com) wrote: Stefan Monnier writes: =20 >> =46air enough. One question though, if sequences.el is not preloaded, = then =20 >> I guess these functions should not be documented in the manual=3F =20 > =20 > Why not=3F Just state that they need a (require 'seq) before you can =20 > use them. =20 Should I put it in the Elisp manual in sequences.texi=3F =20 Nicolas =20 --5463b10e_12200854_2c10 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline