> use lots of small functions. What is the difference between

This defines 2 functions.

> 
> (defun bar (...)
>   (blah blub))
> 
> (defun foo (...)
>   (let ((...))
>     (bar ...)))
> 

This defines a function and a "top level form".
The first expression is evaluated and returns a function.
The second expression is immediately evaluated for effect.

> and
> 
> <<foo>>=
> (defun foo (...)
>   (let ((...))
>     <<do-bar>>))
> @
> 
> <<do-bar>>=
> (blah blub)
> @

Depending on the situation the value of the top level form
could have other side effects.

t


_______________________________________________
Axiom-developer mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/axiom-developer

Reply via email to