On Mon, Feb 8, 2010 at 5:29 AM, Laurent PETIT <laurent.pe...@gmail.com> wrote: > Hello, > > Did anybody create a functionally equivalent clojure version of > so-called Groovy Builders ? > ( http://groovy.codehaus.org/Builders ) > > Not that it should be too difficult to come up with an equivalent, and > also not that it would seem to you that it is interesting to do so > given the power of clojure, but ... > > ... a friend of mine is investigating into groovy because he wants to > leverage groovy builders power (does not want to write his application > in groovy, just the builders parts). > > ... so I said to him: take a look at clojure, it really shines at > mixing data and code, has very good support for writing data structure > literals, and with the power of its macro system, you have unlimited > power to customize a DSL. > > But he replied: > * there is a lower cost for me to quickly get what I need: expressive > builder expressions in a langage (groovy) that I can grasp very > quickly > > And I also thought for myself: > * power is good, but it would not be easy for my friend to *quickly* > get the same as groovy builders provide, *because* they provide a > "framework" which guides him. > > > So, again, did anybody write something *functionally* similar to > groovy builders already ? > > I would see such project a good way to have more java users become > familiar to clojure "at a low cost", hopefully making them the switch > less costly at firt.
People choose languages for a project (myself included) for some of the oddest reasons sometimes... But it's interesting you mention builders -- I hadn't heard the term until reading a section Fogus wrote for our book. I guess I can't link to it here quite yet, but in essence he walks you through how to use normal Clojure literal map syntax in place of fluent builders. This of course requires essentially no framework code at all, either to support builders in general or for any specific application's builder needs. So perhaps what your friend needs is just an example or description of how to proceed in Clojure, not actually any library code at all. --Chouser http://joyofclojure.com/ -- 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