From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: PT Newsgroups: gmane.emacs.help Subject: Re: Function binders in Elisp? Date: Mon, 18 Apr 2005 20:15:53 +0200 Organization: Aioe.org NNTP Server Message-ID: References: <1113841572.737369.303390@l41g2000cwc.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 Content-Transfer-Encoding: Quoted-Printable X-Trace: sea.gmane.org 1113848271 25847 80.91.229.2 (18 Apr 2005 18:17:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 18 Apr 2005 18:17:51 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 18 20:17:49 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DNamv-0007hl-Vc for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Apr 2005 20:16:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DNar5-0005Rh-B6 for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Apr 2005 14:20:19 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!zen.net.uk!dedekind.zen.co.uk!213.155.197.138.MISMATCH!aioe.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-NNTP-Posting-Host: Xv6rmxSSZbsZKJIxE/w28A.domitilla.aioe.org Original-X-Complaints-To: abuse@aioe.org Original-NNTP-Posting-Date: Mon, 18 Apr 2005 18:14:43 +0000 (UTC) User-Agent: Opera M2/8.0 (Win32, build 7561) Original-Xref: shelby.stanford.edu gnu.emacs.help:130217 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:25784 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25784 On Mon, 18 Apr 2005 18:26:12 +0200, rgb wrote: > > So you are looking to do this? > > (defmacro bind-second (first &rest others) > `(lambda (x) (,first x ,@others))) > > (remove-if (bind-second > 2) > '(1 2 3 4)) > > I'd think that would make the code a bit more confusing to read. > But maybe it's just me. In very simple cases it might be simpler than writing those lambda = functions. STL introduced functional programming paradigms in C++, that'= s = why I thought there is a standard way in Lisp to do it and the STL = developers simply implemented the same function binders in C++. I know I can write my own macros to do that, but a standardized way woul= d = be better, because it would be recognized by other Lisp programmers too.= = From your answer it's clear there are no such standard macros in (e)lis= p, = so it's not really worth the trouble, because it would only make my = programs harder to read for others.