axiom-developer
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Axiom-developer] Literated VMLISP.LISP.PAMPHLET


From: root
Subject: Re: [Axiom-developer] Literated VMLISP.LISP.PAMPHLET
Date: Tue, 26 Sep 2006 11:06:32 -0400

> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]