From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: gnuist007@hotmail.com Newsgroups: gmane.emacs.help Subject: Re: Style Issues in Lisp and Scheme programming, setq versus let ... and onion structure with multiple cores or eyes or kernels Re: string to list or string to array Date: Wed, 24 Oct 2012 20:20:32 -0700 (PDT) Message-ID: <9b568902-c943-4b69-b80f-21f7fb0f814b@o8g2000yqh.googlegroups.com> References: <62642868-f757-4115-a047-34c319a1c30f@o5g2000yqi.googlegroups.com> <87pq4c848a.fsf@kuiper.lan.informatimago.com> <4e87f58c-72fc-457b-8596-c792c39472e5@m4g2000yqb.googlegroups.com> <87zk3f7ey7.fsf@kuiper.lan.informatimago.com> <657d823b-990f-4a2b-a57c-2c644099ddcd@z2g2000yqj.googlegroups.com> <492ccf3f-9658-4446-913e-3d0600011702@y8g2000yqy.googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1351135515 3148 80.91.229.3 (25 Oct 2012 03:25:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Oct 2012 03:25:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 25 05:25:23 2012 Return-path: Envelope-to: geh-help-gnu-emacs@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 1TRE4O-0005Xv-3C for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Oct 2012 05:25:20 +0200 Original-Received: from localhost ([::1]:36315 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRE4G-0001d3-8F for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Oct 2012 23:25:12 -0400 Original-Received: by 10.224.193.72 with SMTP id dt8mr9726811qab.7.1351135232201; Wed, 24 Oct 2012 20:20:32 -0700 (PDT) Original-Received: by 10.236.115.33 with SMTP id d21mr1800554yhh.12.1351135232115; Wed, 24 Oct 2012 20:20:32 -0700 (PDT) Original-Path: usenet.stanford.edu!x14no7034234qar.0!news-out.google.com!r17ni57592152qap.0!nntp.google.com!x14no7327846qar.0!postnews.google.com!o8g2000yqh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs,comp.lang.lisp,comp.lang.scheme Complaints-To: groups-abuse@google.com Injection-Info: o8g2000yqh.googlegroups.com; posting-host=99.42.78.5; posting-account=HZMwaQgAAABuThfluRZ4FM7A69xRFwOt Original-NNTP-Posting-Host: 99.42.78.5 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20100101 Firefox/12.0,gzip(gfe) Injection-Date: Thu, 25 Oct 2012 03:20:32 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:195086 comp.emacs:102655 comp.lang.lisp:311504 comp.lang.scheme:89172 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:87415 Archived-At: On Oct 24, 8:03=A0am, Stefan Monnier wrote: > > btw, Lisp's prefix notation, (f x y z) is more expressive and > > convenient for expressing currying (((f x) y) z) than f(x y z). > > With all due respect to Lisp, that's not true. =A0Curried calls in the > non-Lisp syntax are simply "f(x)(y)(z)" or even better "f x y z". > > =A0 =A0 =A0 =A0 Stefan As an aside you show the notation. well and good. But I realize that there is no executable substitute or ability to return a curried function in emacs. Consider these forms. (+ 2 3 4) ;; executable (((+ 2) 3) 4) ;; not executable (cons '+ (cons 2 (cons 3 (cons 4 nil)))) ;; ditto (eval '(+ (cons 2 (cons 3 (cons 4 nil))))) ;; ditto Can anyone suggest an executable version of first in terms of curried addition? Since Pascal is busy, and David Kastrup is not seen for quite some time, I hope someone can give a reply to the question of the thread. G