comp.lang.ada
 help / color / mirror / Atom feed
From: Martti Halminen <martti.halminen@kolumbus.fi>
Subject: Re: I want to ask you All an advice, please
Date: Thu, 14 Nov 2002 17:30:34 +0200
Date: 2002-11-14T17:30:34+02:00	[thread overview]
Message-ID: <3DD3C19A.C0DAD898@kolumbus.fi> (raw)
In-Reply-To: ar0dgl$m1a$1@a1-hrz.uni-duisburg.de

Georg Bauhaus wrote:
> 
> In comp.lang.ada Fred Gilham <gilham@snapdragon.csl.sri.com> wrote:
> 
> :     o simple syntax[2]

> 
> If you can't accept that this may be considered syntax (also),
> then consider that "human stacks" are pretty bad in bracket
> matching. After all there is a reason that we write many small functions
> and not a few big ones. I believe that too many ()s will make you crazy
> and not very productive.

What makes you think that it would be any different in Lisp? In my
programs the average size of a lisp function is less than 15 lines.

> How many levels of nested function application can a human being
> remember? Try
>   (+ 3 (* 4 (+ 7 6 (- 5 1)) (/ 4 (+ 5 6)))
> "by hand" for an easy example. The tree isn't unusually high.

Few Lisp programmers would write it like that.

(+ 3 (* 4
	(+ 7 6 (- 5 1))
	(/ 4 (+ 5 6))))
would be more likely to be found in actual code.
The trick in reading Lisp is to leave the bellyaching about parentheses
to the compiler and editor, and use the indentation to read the code
structure.

--



  parent reply	other threads:[~2002-11-14 15:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <aqnouk$8mu$1@news.lucky.net>
     [not found] ` <aqre61$3u1$0@216.39.172.122>
2002-11-12 19:07   ` I want to ask you All an advice, please Kenny Tilton
     [not found] ` <3dd10fa0_2@news.arcor-ip.de>
     [not found]   ` <3DD11253.7050102@nestcape.net>
     [not found]     ` <3dd2147f_1@news.arcor-ip.de>
     [not found]       ` <u7el9pjrtb.fsf@snapdragon.csl.sri.com>
     [not found]         ` <ar0dgl$m1a$1@a1-hrz.uni-duisburg.de>
2002-11-14 15:30           ` Martti Halminen [this message]
2002-11-16  6:41             ` AG
2002-11-15 13:06               ` Martti Halminen
2002-11-12 12:03 Artiom Ivanov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox