Hi,

Am 08.11.2008 um 17:10 schrieb Robert Pfeiffer:
Is there a benefit in implementing this as a macro instead of a
function? The function version would be very simple:

(defn returning [returnval & body]
  returnval)

Although I'm a strong proponent of using macros only where they
are really needed, I would make an exception here. The function
might be simple and the use of a K combinator - whatever that is -
might be elegant, but it hides away the intent of the macro/function.
The macro expansion on the other hand is clear: evaluate the first
form, do the rest and return the first thing. The function call
hides away the "do the rest" step.

I apologise for being a peasant.

Sincerely
Meikel


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to