Thanks for the reply Nicolas!

I might do that if I have more to offer than a single macro, as of now I think 
it'd be weird to create a clojar just for that.

It's easily accessible for anyone who searches the list though (or thinks of it 
themselves, as others have done). :-)

The code is pretty simple (copied from earlier):

        (defmacro -->
                ([x] x)
                ([x form]
                        (if (seq? form)
                                `(let [~'_ ~x] ~form)
                                (list form x)
                        )
                )
                ([x form & more]
                        ; cache the result of the first form
                        (let [_ `(--> ~x ~form)]
                                `(--> ~_ ~...@more)
                        )
                )
        )

And I kinda like how it looks like a bunch of those asian-style smiley faces. 
:-)

- Greg

On Jul 6, 2010, at 5:23 PM, Nicolas Oury wrote:

> Reading this thread, I realized how happy I was that I use a Lisp where 
> anyone can create
>  its own language construct with a new macro.
> 
> Greg, put that macro in a repository and in a jar on clojar, easily 
> accessible from lein,
>  and maybe people will use it. (I never had the need for something like this 
> macro personally,
>  but I believe you had, and Lisp allows a lot of different coding styles: a 
> lot of people have asked for 
> something like that)
> 
> Of course, a core library needs a lot of evaluations and thoughts before 
> being changed.
> So making it easily available to everybody that needs it is a good step, I 
> think.
> 
> Best,
> 
> Nicolas.
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to