|
From: | Pascal J. Bourguignon |
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 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
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 {}.
[Prev in Thread] | Current Thread | [Next in Thread] |