Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion LISP - 24hours in a few days - headache

Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newspeer.clara.net!news.clara.net!server3.netnews.ja.net!news.ox.ac.uk!127.0.0.1!nobody
From: Daniel Barlow <d...@telent.net>
Newsgroups: comp.lang.lisp
Subject: Re: LISP - 24hours in a few days - headache
Date: Sat, 17 Aug 2002 21:58:23 +0100
Organization: Oxford University, England
Lines: 55
Sender: d...@noetbook.telent.net
Message-ID: <877kipjj80.fsf@noetbook.telent.net>
References: <3D5E91D2.7030703@lazaridis.de>
NNTP-Posting-Host: cs1.trinity.ox.ac.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.ox.ac.uk 1029624911 29708 163.1.162.46 (17 Aug 2002 22:55:11 GMT)
X-Complaints-To: newsmaster@ox.ac.uk
NNTP-Posting-Date: Sat, 17 Aug 2002 22:55:11 +0000 (UTC)
User-Agent: Gnus/5.090005 (Oort Gnus v0.05) Emacs/21.2
 (i386-debian-linux-gnu)
Cancel-Lock: sha1:nNsf/QXzsyoZ/+UkkH6RW3IZ9Io=

il...@lazaridis.de writes:

> as in other newgroups: no precision, no gentleness, no focussing on the
                         ^^^^^^^^^^^^
> posters problems & questions. Many throw out all their psychological
> garbage (auto-collected).


> Some incosistencies in function naming, some in writing style, "calling
> conventions".

Bits of the language are over 40 years old.  Of course it will be
inconsistent in places.

> it hurts, eh? ok, could agree to this?
>
> ( let ((result 1)) (
>       dotimes (n 10 result) (
>         setq result (+ result n)
>       )
>     )
> )

Please, if you're asking for precision from the other newsgroup
contributors, it would be helpful if you would employ more of it
yourself.  I realise that English may not be your first language, but
when you say "could agree to this", it's impossible to tell whether
you mean that _you_ could agree to that (for example, as an
intermediate position while adjusting from C style indentation) or
you're asking whether _we_ could agree to that.  Don't omit words if
you're unsure whether they can safely be inferred from context.

I'm going to assume you mean the latter, though, and the answer is
"no".  There is a convention for Lisp indentation and paren style, and
there is a bast amount of Lisp code written using it.  Even aside from
any aesthetic arguments for one form or the other, if you become an
adept Lisp programmer you will spend far more time reading code
written by other people than you will writing code, so you may as well
get used to the standard layout.  

How do we cope?  We've learnt not to worry about it.  Our editors
balance the parens for us - we trust that works correctly and don't
need the reassurance of confirming it by eye.  When we read code, we
look at the indentation.  When we write code, we hit the TAB key and
add/remove parens until the indentation is correct.  Some people even
customize their editor to display them in a less obtrusive colour.

Just don't /worry/ about them.


-dan

-- 

  http://ww.telent.net/cliki/ - Link farm for free CL-on-Unix resources