And I've found groovy builders not so well documented, very "magical" (as in "dark magic") where I think this should not be that way. So there is even room to make this simpler for the users, I guess, by correctly implementing a somewhat "verbose" purely functional (and macros-free) DSL, from whom anybody could understand how builders work, *and then* implement syntactic sugar over it via macros.
2010/2/8 Laurent PETIT <laurent.pe...@gmail.com>: > 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. > > Cheers, > > -- > Laurent > -- 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