Re: Symbol clashes: how to avoid them. Part 2



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
.



Relevant Pages

  • Re: Symbol clashes: how to avoid them. Part 2
    ... easier to read that (c-of (b-of a)). ... (let* ((statistic (slot-value statistics type) ... (a (calculate-a statistic)) ...
    (comp.lang.lisp)
  • Re: Why do you say glottochronology is crap?
    ... that there is great variation in lexical retention rates, ... Let's not discuss some remote and forloren languages whose ... Swadesh lists are hard to obtain. ... Statistics doesn't come into it at ...
    (sci.lang)
  • Re: Why do you say glottochronology is crap?
    ... that there is great variation in lexical retention rates, ... Swadesh lists are hard to obtain. ... well-known languages in the world? ... Statistics doesn't come into it at ...
    (sci.lang)
  • Re: "STL from the Ground Up"
    ... Except that the vast majority of programmers already use more modern ... Gathering statistics from lots of different sources. ... Languages like C have strong staying power thanks to critical code like ... You can also analyze web statistics as TIOBE do: ...
    (comp.programming)
  • Re: Languages which turned corners
    ... I have also included statistics for individual groups, ... most people consider them to be separate languages. ... But Pascal once had rank 2 in my Usenet-comp.lang-based ... Concerning Oberon, I believe that the rank in the statistics really ...
    (comp.lang.forth)