On Sat, Jul 30, 2011 at 7:29 AM, Sam Aaron <[email protected]> wrote:
>> (fn [& args]
>>  (let [foo (some logic goes here)
>>        bar (some logic goes here)
>>        ...]
>>    (body goes here)))
>
> I just finished implementing a solution and it looks exactly like this. 
> You're absolutely right - this is precisely the pattern I was looking for.
>
> What I didn't do, and I think the biggest lesson I've learned from these 
> early macro-fighting days, is to do exactly what you propose: sketch out what 
> the macro should expand to *before* working on the macro itself.

That's generally good advice when macro-writing.

> Thanks everyone once again,

You're welcome.

-- 
Protege: What is this seething mass of parentheses?!
Master: Your father's Lisp REPL. This is the language of a true
hacker. Not as clumsy or random as C++; a language for a more
civilized age.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
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