From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: CL package serious deficiencies Date: Fri, 10 Feb 2012 16:08:37 +0100 Message-ID: References: <33271707.post@talk.nabble.com> <87fwemcwlx.fsf@spindle.srvr.nix> <87d39pgdu4.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1328886576 21138 80.91.229.3 (10 Feb 2012 15:09:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Feb 2012 15:09:36 +0000 (UTC) Cc: Nix , Lars Ingebrigtsen , Emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 10 16:09:35 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rvs6Q-0001Pb-Vu for ged-emacs-devel@m.gmane.org; Fri, 10 Feb 2012 16:09:35 +0100 Original-Received: from localhost ([::1]:54944 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rvs6Q-0002Bk-4E for ged-emacs-devel@m.gmane.org; Fri, 10 Feb 2012 10:09:34 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:47548) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rvs6H-0002BR-NW for Emacs-devel@gnu.org; Fri, 10 Feb 2012 10:09:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rvs6B-00061L-By for Emacs-devel@gnu.org; Fri, 10 Feb 2012 10:09:25 -0500 Original-Received: from mail-pw0-f41.google.com ([209.85.160.41]:65237) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rvs6B-00060y-2V for Emacs-devel@gnu.org; Fri, 10 Feb 2012 10:09:19 -0500 Original-Received: by pbcwz17 with SMTP id wz17so2667719pbc.0 for ; Fri, 10 Feb 2012 07:09:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=nfw0cLsWU0sW2GBQ/25ZKCegH3g7t/3bGuqpJMcQfA4=; b=mU2L8HfmoxEB3VkvzjKBjtg1xe+ce15H1lEuojZFBI9mGT13CxRLxd4a4g/g0FDryt 2GpkOV87sdJnMn8c8JxynB2nuGhIKkegp8gOIba25zC9hpxH7guQLOeqPbBwaR6rAZtr 3xeNKotqzyXmxS9xSEyxWtoanBnCMH2AyUBZ4= Original-Received: by 10.68.72.9 with SMTP id z9mr16947707pbu.124.1328886557607; Fri, 10 Feb 2012 07:09:17 -0800 (PST) Original-Received: by 10.143.37.9 with HTTP; Fri, 10 Feb 2012 07:08:37 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.160.41 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:148428 Archived-At: On Fri, Feb 10, 2012 at 15:38, Stefan Monnier wr= ote: > I've used incf occasionally, but don't find it terribly important. Is not terribly important, but it is more expresive than (setq x (1+ x)) when x is this-very-longish-variable-whose-name-will-never-really-end, and you have too look closely to be sure that the second instance isn't really this-other-very-longish-variable-whose-name-will-not-end-eithe= r. Another one I use a lot is pushnew. > That's the big one: some kind of "filter elements based on a predicate" > is really handy and we definitely need to have this in core Elisp. Yes, definitely. > OTOH I don't like the -if-not/-if duplication nor all the keyword > arguments it takes The -if/-if-not duplication is not needed, but as for the keywords, I find most of them useful and handy, except perhaps :test-not. > I think having cl-position (after (require 'cl-lib)) is good enough for > this one (it's handy and more readable than the Elisp replacement, but > it's not used often). Agreed that position is less versatile than remove* or delete-duplicates, but that's a bit self-defeating. Many of these functions, position included, would get more use if they were better integrated. =C2=A0 =C2=A0 Juanma