On Saturday 08 November 2008 08:39, Meikel Brandmeyer wrote:
> 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.

Peasant? Or did you mean "pedant?"


> Sincerely
> Meikel


RRS

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to