Article View: comp.lang.functional
Article #1207How to improve the readability of (any) LISP or any highlevel functional language to the level of FORTH ?
From: girosenth
Date: Sat, 01 Jan 2011 07:04
Date: Sat, 01 Jan 2011 07:04
58 lines
3002 bytes
3002 bytes
How to improve the readability of (any) LISP or any highlevel functional language to the level of FORTH ? There are many people who have trivia complaints about parens in lisp, but I dont. LISP is a prefix notation. sequence of operations would look like this on operands (ops) : (f ops (g ops (h ops (j ops (k ops (l ops ))...)))) How do you make it readable ? How do you home to the center or centers ? (f (g (h (j (k (l ops)))...))) is easy to read or ops l k j h g f ??? Which is linear reading from L->R ? LISP or FORTH ? AND, if I must break the nested function structure, will I not be visiting the forbidden territory of imperative programming ? (setq L (l ops)) (setq K (k L )) .... .... (setq F (f G )) If I use setq, I am using globals, atleast in elisp. If I use let*, I have limited options as I am constrained inside the rigid structure of let* (let* ((L (l ops)) (K (k L )) .... (F (f G ))) some more ) Is there a postfix functional language that also gets rid of parens and is not as primitive as FORTH or POSTSCRIPT ? What are the syntax advantages of ERLANG, ML, CAML, OCAML, HASKELL, PROLOG, RUBY over LISP ? How does one improve readability so that the code is self-commenting ? girosenth
Technical Details
Message-ID:
<80ceeca0-1d32-47d1-ba96-feb4d9729c3a@v17g2000yqv.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!v17g2000yqv.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 107f24,1641de092071599d,start
X-Google-NewGroupId: yes
X-Google-Thread: f4fd2,1641de092071599d,start
X-Google-NewGroupId: yes
X-Google-Thread: 103b8b,1641de092071599d,start
X-Google-NewGroupId: yes
X-Google-Thread: fd7c9,1641de092071599d,start
X-Google-NewGroupId: yes
X-Google-Thread: f907c,1641de092071599d,start
X-Google-NewGroupId: yes
X-Google-Attributes: gid4e63bbc566,gidf85ca024c1,gid39ae015015,gid2832dde05d,gidee3de009bc,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!v17g2000yqv.googlegroups.com!not-for-mail
From: girosenth <girosenth@india.com>
Newsgroups: comp.lang.functional,comp.lang.lisp,gnu.emacs.help,comp.lang.forth,comp.lang.prolog
Subject: How to improve the readability of (any) LISP or any highlevel
functional language to the level of FORTH ?
Date: Fri, 31 Dec 2010 23:04:24 -0800 (PST)
Organization: http://groups.google.com
Lines: 58
Message-ID: <80ceeca0-1d32-47d1-ba96-feb4d9729c3a@v17g2000yqv.googlegroups.com>
NNTP-Posting-Host: 75.28.141.221
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: posting.google.com 1293865464 17393 127.0.0.1 (1 Jan 2011 07:04:24 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sat, 1 Jan 2011 07:04:24 +0000 (UTC)
Cc: girosenth@gmail.com, girosenth@india.com
Complaints-To: groups-abuse@google.com
Injection-Info: v17g2000yqv.googlegroups.com; posting-host=75.28.141.221; posting-account=ycV5DAkAAACkdw-aGjzF7EnDDPhW9TvT
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1;
Trident/4.0; {83B3ACED-AC9F-2058-FD69-DBCDCD722B97}; (R1 1.5)),gzip(gfe)