From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Barzilay Newsgroups: gmane.lisp.guile.devel Subject: Re: Shorter lambda expressions Date: Fri, 24 Jan 2014 08:28:17 -0500 Message-ID: <21218.27249.628557.997310@lambda.ccs.neu.edu> References: <201401241138.s0OBc9u5025102@lambda.ccs.neu.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1390581497 18726 80.91.229.3 (24 Jan 2014 16:38:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Jan 2014 16:38:17 +0000 (UTC) To: ludo@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Jan 24 17:38:24 2014 Return-path: Envelope-to: guile-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 1W6jlw-0002Ta-Hw for guile-devel@m.gmane.org; Fri, 24 Jan 2014 17:38:24 +0100 Original-Received: from localhost ([::1]:47598 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6jlw-00051E-7R for guile-devel@m.gmane.org; Fri, 24 Jan 2014 11:38:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42152) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6jlo-0004ym-0A for guile-devel@gnu.org; Fri, 24 Jan 2014 11:38:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W6jlg-0001SF-1d for guile-devel@gnu.org; Fri, 24 Jan 2014 11:38:15 -0500 Original-Received: from hera.aquilenet.fr ([141.255.128.1]:41941) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6jlf-0001SB-QU for guile-devel@gnu.org; Fri, 24 Jan 2014 11:38:07 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 5A0851BF8 for ; Fri, 24 Jan 2014 17:33:04 +0100 (CET) Original-Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XtMr7hHkTPzj for ; Fri, 24 Jan 2014 17:33:04 +0100 (CET) Original-Received: from pluto (pluto.bordeaux.inria.fr [193.50.110.57]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 2C9A51BF0 for ; Fri, 24 Jan 2014 17:33:04 +0100 (CET) Resent-To: guile-devel@gnu.org Resent-From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Resent-Date: Fri, 24 Jan 2014 17:33:03 +0100 Resent-Message-ID: <87k3dpgx1c.fsf@gnu.org> Original-Received: from solo.fdn.fr ([unix socket]) by solo (Cyrus v2.2.13-Debian-2.2.13-19.1+squeeze1) with LMTPA; Fri, 24 Jan 2014 14:28:26 +0100 X-Sieve: CMU Sieve 2.2 Original-Received: by solo.fdn.fr (Postfix) id 1CA3A460D0; Fri, 24 Jan 2014 14:28:26 +0100 (CET) Original-Received: from fencepost.gnu.org (fencepost.gnu.org [IPv6:2001:4830:134:3::e]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by solo.fdn.fr (Postfix) with ESMTPS id 00FBB460C9 for ; Fri, 24 Jan 2014 14:28:25 +0100 (CET) Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42978) by fencepost.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1W6go3-0000wE-Lw for ludo@gnu.org; Fri, 24 Jan 2014 08:28:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W6gny-0004fv-OY for ludo@gnu.org; Fri, 24 Jan 2014 08:28:23 -0500 Original-Received: from lambda.ccs.neu.edu ([129.10.115.115]:54411) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6gny-0004fq-Lg for ludo@gnu.org; Fri, 24 Jan 2014 08:28:18 -0500 Original-Received: from lambda.ccs.neu.edu (localhost.localdomain [127.0.0.1]) by lambda.ccs.neu.edu (8.14.7/8.14.7) with ESMTP id s0ODSHYu031809 for ; Fri, 24 Jan 2014 08:28:17 -0500 Original-Received: (from eli@localhost) by lambda.ccs.neu.edu (8.14.7/8.14.7/Submit) id s0ODSH0k031805; Fri, 24 Jan 2014 08:28:17 -0500 In-Reply-To: <201401241138.s0OBc9u5025102@lambda.ccs.neu.edu> X-Mailer: VM 8.2.0a under 24.2.1 (x86_64-redhat-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [fuzzy] X-Received-From: 141.255.128.1 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:16847 Archived-At: > One related thing I sometimes lack is: >=3D20 > (define-syntax-rule (thunk exp ...) > (lambda () exp ...)) >=3D20 > (Found in Racket, notably.) IMO, it's much more useful to have `=CE=BB', together with an Emacs hac= k that makes it easy to type. In the last few years I even switched to omitting the space in some simple cases, so I use (=CE=BB() (blah) (blah) (blah)) which is even shorter than `thunk'. Also, there's no confusion between `thunk' and `thunk*' (accepts any number of arguments) which some people prefer. (Not on the list; feel free to forward...) --=20 ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay= : http://barzilay.org/ Maze is Life= !