From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marko Rauhamaa Newsgroups: gmane.lisp.guile.devel,gmane.lisp.guile.user Subject: Re: Request for feedback on SRFI-126 Date: Thu, 01 Oct 2015 08:11:13 +0300 Message-ID: <874mib2mxa.fsf@elektro.pacujo.net> References: <87zj08t5w1.fsf@T420.taylan> <4816667.WGBHnKbjFh@fluss> 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 1443700483 15521 80.91.229.3 (1 Oct 2015 11:54:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 Oct 2015 11:54:43 +0000 (UTC) Cc: guile-user@gnu.org, guile-devel To: Arne Babenhauserheide Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Oct 01 13:54:43 2015 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 1ZhcRa-0002Ni-Kx for guile-devel@m.gmane.org; Thu, 01 Oct 2015 13:54:38 +0200 Original-Received: from localhost ([::1]:48895 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZhcRZ-00080Z-T7 for guile-devel@m.gmane.org; Thu, 01 Oct 2015 07:54:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42044) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZhW9I-0005OM-HA for guile-devel@gnu.org; Thu, 01 Oct 2015 01:11:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZhW9H-0007QV-G5 for guile-devel@gnu.org; Thu, 01 Oct 2015 01:11:20 -0400 Original-Received: from [2001:1bc8:1a0:5384:7a2b:cbff:fe9f:e508] (port=44549 helo=pacujo.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZhW9F-0007QA-9Q; Thu, 01 Oct 2015 01:11:17 -0400 Original-Received: from elektro.pacujo.net (192.168.1.200) by elektro.pacujo.net; Thu, 1 Oct 2015 08:11:13 +0300 Original-Received: by elektro.pacujo.net (sSMTP sendmail emulation); Thu, 01 Oct 2015 08:11:13 +0300 In-Reply-To: <4816667.WGBHnKbjFh@fluss> (Arne Babenhauserheide's message of "Tue, 29 Sep 2015 22:18:04 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:1bc8:1a0:5384:7a2b:cbff:fe9f:e508 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:17884 gmane.lisp.guile.user:12067 Archived-At: Arne Babenhauserheide : > Making Scheme as usable as Python requires finding an elegance which > fits Scheme and allows creating applications at least as easily as > with Python =E2=80=94 but not necessarily in the same style. The main thing is to keep the S expressions' data/code duality. Python doesn't have it. Here's a Python program: for i in range(10): print(i) Here's the abstract syntax tree of the same program (generated by ast.dump): Module( body=3D[ For(target=3DName( id=3D'i', ctx=3DStore()), iter=3DCall( func=3DName( id=3D'range', ctx=3DLoad()), args=3D[Num(n=3D10)], keywords=3D[], starargs=3DNone, kwargs=3DNone), body=3D[Expr(value=3DCall( func=3DName( id=3D'print', ctx=3DLoad()), args=3D[ Name(id=3D'i', ctx=3DLoad())], keywords=3D[], starargs=3DNone, kwargs=3DNone))], orelse=3D[])]) In Scheme, code is its own abstract syntax tree. Marko