Kaz Kylheku
10/21/2015 6:47:00 PM
On 2015-10-21, AarBee <ritwikbhatia@gmail.com> wrote:
> 2. From your reply, I infer that you too are not seeing the point being made
> in TLS justifying the additional (cond ...) relative to the version with a
Cascading COND's is completely silly; I would expect only machine-generated
code to do that, not a thinking human.
That is to say:
(cond (condition1 forms1 ...)
(t (cond (condition2 forms2 ...)
t
... (cond (conditionN formsN ...)
(t alternatives ...)) ... )))
should be written:
(cond
(condition1 forms1 ...)
(condition2 forms2 ...)
...
(conditionN formsN ...)
(t alternatives ...))
The point of COND is that it expresses a cascade of tests with linear syntax.
Why introduce unnecessary nesting into it, plus additional clutter (cond's and
t's) to support that nesting.