From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: sequence manipulation functions Date: Wed, 05 Nov 2014 13:32:31 -0500 Message-ID: References: <87oasmmwzt.fsf@gmail.com> <87bnolslph.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1415212376 21266 80.91.229.3 (5 Nov 2014 18:32:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Nov 2014 18:32:56 +0000 (UTC) Cc: Emacs developers To: Nicolas Petton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 05 19:32: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 1Xm5Nx-00073h-9R for ged-emacs-devel@m.gmane.org; Wed, 05 Nov 2014 19:32:49 +0100 Original-Received: from localhost ([::1]:47993 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xm5Nw-0003GX-Qw for ged-emacs-devel@m.gmane.org; Wed, 05 Nov 2014 13:32:48 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38117) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xm5No-0003Dr-5Y for emacs-devel@gnu.org; Wed, 05 Nov 2014 13:32:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xm5Ng-00058X-UI for emacs-devel@gnu.org; Wed, 05 Nov 2014 13:32:40 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:29532) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xm5Ng-00058R-Rf for emacs-devel@gnu.org; Wed, 05 Nov 2014 13:32:32 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ag8NAOatTlRFpY87/2dsb2JhbABcgw6BLII2hn7LUwQCAoEcFwEBfIQDAQEDAVYWDQULCzQSFBgNJBMaiB4Jy3IBAQEBBgEBAQEekQgHhEsFi2STLpB9ghGBb4QWHy+CSwEBAQ X-IPAS-Result: Ag8NAOatTlRFpY87/2dsb2JhbABcgw6BLII2hn7LUwQCAoEcFwEBfIQDAQEDAVYWDQULCzQSFBgNJBMaiB4Jy3IBAQEBBgEBAQEekQgHhEsFi2STLpB9ghGBb4QWHy+CSwEBAQ X-IronPort-AV: E=Sophos;i="5.04,797,1406606400"; d="scan'208";a="96041980" Original-Received: from 69-165-143-59.dsl.teksavvy.com (HELO pastel.home) ([69.165.143.59]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 05 Nov 2014 13:32:32 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id C5B4C7AB7; Wed, 5 Nov 2014 13:32:31 -0500 (EST) In-Reply-To: <87bnolslph.fsf@gmail.com> (Nicolas Petton's message of "Wed, 05 Nov 2014 16:36:58 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:176429 Archived-At: > I understand your point. Then what do you think about having all other > sequence functions prefixed with "seq-"? Yes, you'll want to add seq-* aliases for things like elt. > For backward-compatibility, I could keep the current names as aliases, > and maybe later obsolete them. We can start by having seq-elt be an alias for elt (rather than the other way around) so as not to need changing anything else. >> The different of cost between "rest of a list" and "rest of an array" is >> so large that merging the two this way is probably not a good idea. > Do you mean that the implementation is lacking in some way or that you > would remove the "rest" function all together? I think it's not just an implementation detail but a fundamental limitation, so I'd just remove it. Those who really want it can use subseq (or whatever its new name will be, e.g. seq-subseq). Sebastien Vauban writes: > Why? Isn't it still useful for packages in general (and ELPA in > particular) so that autoloads files are generated, and these only are > what's needed to be loaded... allowing performance gains at startup? You might as well put a ;;;###autoload (require 'seq) at that point (or add it to loadup.el). Stefan