Re: Symbol clashes: how to avoid them. Part 2
- From: Tamas K Papp <tkpapp@xxxxxxxxx>
- Date: 31 Oct 2008 19:58:02 GMT
On Fri, 31 Oct 2008 11:37:19 -0700, budden wrote:
- every independent expert would say very definitely that a.b.c is much
easier to read that (c-of (b-of a)). Don't even say about (slot- value
Great! How should I write
(defun analyze-statistic (statistics &option (type 'total))
(let* ((statistic (slot-value statistics type)
(a (calculate-a statistic))
(b (calculate-b statistic)))
;; ...
))
(analyze-statistic *statistics*)
(analyze-statistic *statistics* 'unemployed)
(analyze-statistic *statistics* 'employed)
in the wonderful notation your "independent experts" have cooked up?
(slot-value a 'b) 'c). I showed my lisp sources printed to my
girl-friend (she is a linguist) and I was unable to explain why eight
closing parens go in a row... It was a luck she didn't ask :) Parens
Then perhaps she should not be programming Lisp or designing computer
languages (which is not what linguists do anyway; if she dated smarter
people they wouldn't ask her about such things, but perhaps you have some
other redeeming quality).
_are__there_ . One might filter them out at "high level" of brain's
OCR/text parser, but eye keep working upon it and neurons get overheated
occasionally... Real lisper's never notice that as there is a special
Luckily, you seem to have ample amounts of air between your neurons so
they will cool off.
Hint: you have just got started with CL, and you are trying to redesign
it. Quite a few people fall into this trap. None of them really succeed
in anything but the demonstration that they are not willing to devote
time to understanding the engineering decisions behind Lisp.
Before you share another one of your great suggestions, please program in
CL seriously for at least 3 months so you will learn the language as it
is.
HTH,
Tamas
.
- Follow-Ups:
- Re: Symbol clashes: how to avoid them. Part 2
- From: Kaz Kylheku
- Re: Symbol clashes: how to avoid them. Part 2
- From: budden
- Re: Symbol clashes: how to avoid them. Part 2
- References:
- Re: Symbol clashes: how to avoid them. Part 2
- From: Lars Rune Nøstdal
- Re: Symbol clashes: how to avoid them. Part 2
- From: budden
- Re: Symbol clashes: how to avoid them. Part 2
- Prev by Date: Re: printing readably an array of type bit!
- Next by Date: Re: Growing a data type?
- Previous by thread: Re: Symbol clashes: how to avoid them. Part 2
- Next by thread: Re: Symbol clashes: how to avoid them. Part 2
- Index(es):
Relevant Pages
|