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: CL package serious deficiencies Date: Sun, 12 Feb 2012 13:15:35 -0500 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 X-Trace: dough.gmane.org 1329070548 18778 80.91.229.3 (12 Feb 2012 18:15:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 12 Feb 2012 18:15:48 +0000 (UTC) Cc: emacs-devel@gnu.org To: Helmut Eller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 12 19:15:47 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 1Rwdxe-0005Nx-88 for ged-emacs-devel@m.gmane.org; Sun, 12 Feb 2012 19:15:42 +0100 Original-Received: from localhost ([::1]:48152 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rwdxd-0003Jv-LQ for ged-emacs-devel@m.gmane.org; Sun, 12 Feb 2012 13:15:41 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:49687) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rwdxa-0003Jb-3V for emacs-devel@gnu.org; Sun, 12 Feb 2012 13:15:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RwdxZ-0001Ps-4W for emacs-devel@gnu.org; Sun, 12 Feb 2012 13:15:38 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:51119) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RwdxZ-0001Pm-0Y for emacs-devel@gnu.org; Sun, 12 Feb 2012 13:15:37 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsIAEoBOE/O+IED/2dsb2JhbABDrnZ+gQiBcwEFViMQCzQSFBgNJL9qiTGDDwwHCAYEBQMBg2MFhBMEiEqbEIRa X-IronPort-AV: E=Sophos;i="4.73,408,1325480400"; d="scan'208";a="162760355" Original-Received: from 206-248-129-3.dsl.teksavvy.com (HELO ceviche.home) ([206.248.129.3]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 12 Feb 2012 13:15:35 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 669B86611D; Sun, 12 Feb 2012 13:15:35 -0500 (EST) In-Reply-To: (Helmut Eller's message of "Sun, 12 Feb 2012 18:39:45 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (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:148518 Archived-At: >>>> I much prefer a leaner approach where instead of (delete-if >>>> #'foo :key #'bar) you have to write (delete-if (lambda (x) (foo (bar >>>> x)))). >>> This transformation can be done automatically by a compiler-macro. >> Not sure what you mean by "automatically", here. Do you mean "without >> prompting the user to do the transformation by hand"? > Yes. That's the expected behavior of a compiler-macro, so really what you're saying is that "This transformation can be done by a compiler-macro", but the problem remains: you have to write the compiler-macro by hand, and the function still has to handle the :key argument anyway, in case the compiler-macro can't do its job. Stefan