🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.functional
Article #1160

Re: How to improve the readability of (any) LISP or any highlevel functional language to the level of FORTH ?

#1160
From: Pascal J. Bourguignon
Date: Wed, 05 Jan 2011 21:42
25 lines
2708 bytes
Elena <egarrulo@gmail.com> writes:

> On Jan 5, 3:58 pm, Xah Lee <xah...@gmail.com> wrote:
>> The same expression in lisp style you get this
>>
>> /(+(-(b) √(+(^(b 2) -(*(4 a c))))) *(2 a))
>>
>> is it readable? Many lispers insist that its the most readable syntax.
>
> And here is why: http://blo.udoidio.info/2008/09/lisp-syntax-is-great.html

He's wrong, the most readable is:

  (divide (minus (square-root (minus (square b) (* 4 a c)))
                 b)
          2 a)

or, for wanbees:

  (/ (- (sqrt (- (square b) (* 4 a c))) b)
     2 a)

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/
A bad day in () is better than a good day in {}.
Technical Details
Message-ID: <87ei8rdo38.fsf@kuiper.lan.informatimago.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!feeder.news-service.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <80ceeca0-1d32-47d1-ba96-feb4d9729c3a@v17g2000yqv.googlegroups.com> <e37b64b7-61ba-4247-a6cd-e32323c7be15@i32g2000pri.googlegroups.com> <767329f7-d300-4090-93cb-717d70fbadc4@i17g2000vbq.googlegroups.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 107f24,1641de092071599d
X-Google-NewGroupId: yes
X-Google-Thread: f4fd2,1641de092071599d
X-Google-NewGroupId: yes
X-Google-Thread: 103b8b,1641de092071599d
X-Google-NewGroupId: yes
X-Google-Thread: fd7c9,1641de092071599d
X-Google-NewGroupId: yes
X-Google-Thread: f907c,1641de092071599d
X-Google-NewGroupId: yes
X-Google-Attributes: gid4e63bbc566,gidf85ca024c1,gid39ae015015,gid2832dde05d,gidee3de009bc,domainid0,public,usenet
X-Google-Language: ENGLISH,UTF8
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!feeder.news-service.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: "Pascal J. Bourguignon" <pjb@informatimago.com>
Newsgroups: comp.lang.functional,comp.lang.lisp,gnu.emacs.help,comp.lang.forth,comp.lang.prolog
Subject: Re: How to improve the readability of (any) LISP or any highlevel functional language to the level of FORTH ?
Date: Wed, 05 Jan 2011 22:42:35 +0100
Organization: Informatimago
Lines: 25
Message-ID: <87ei8rdo38.fsf@kuiper.lan.informatimago.com>
References: <80ceeca0-1d32-47d1-ba96-feb4d9729c3a@v17g2000yqv.googlegroups.com>
 <e37b64b7-61ba-4247-a6cd-e32323c7be15@i32g2000pri.googlegroups.com>
 <767329f7-d300-4090-93cb-717d70fbadc4@i17g2000vbq.googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net 5KpQ/FH5Jrgspr2QUCX4Jg+HUyR2z7oGEdO1n9vRLzMjmRivOD
Cancel-Lock: sha1:NzA1NDhlMTJhMWM5ZDdlY2E0ZmRiODIzYzM1YmNmN2RiMmFkOTlkMQ== sha1:OvkQokbqdTg1dy676IcZhPj+G8M=
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA
      oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9
      033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac
      l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR
      mV+hO/VvFAAAAABJRU5ErkJggg==
X-Accept-Language:         fr, es, en
X-Disabled: X-No-Archive: no
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)