While the statement that creating any syntax is true for LISP, so for Clojure its not because of missing reader macro ("The read table is currently not accessible to user programs." from http://clojure.org/reader).
Nevertheless I found homoiconicity very useful. I turned my XML document (with my imagined syntax) into Clojure code which was just bunch of functions and macros (for changing the execution the control flow). It was made for my custom forms, context validations and transformations into Java objects in GWT project (unfortunately the client side still had to interpret the data structures to create froms, but the rest could be executed with Clojure on the server side). Above example resembles the ANT with the difference that I hadn't to write complicated interpreter and class hierarchy (one module less) and still gained better flexibility and maintenance in future. On Sep 24, 11:17 pm, "alexey.petrushin" <alexey.petrus...@gmail.com> wrote: > Hello, I'm learning Clojure (work mainly with Java and Ruby), > interested in it after reading Paul Graham and watched very > interesting presentation about persistent data structures by Rich > Hickey. > > So, one of the cornerstones of Paul Graham articles is - Lisp has no > syntax, so You can create any syntax that suits You best, and because > code is just a data it's very easy to do. > > You can model any concept - create DSL best suited for Your problem or > model Object Oriented approach, Inheritance, and so on. > > But I believe, it's very hard to demonstrate this advantages on the > simple samples. You has to do something real and complex to see > advantages of this approach. > > So, maybe there's an interesting Open Source Project that uses this > approach? With clean code that can be seen as showcase of such > techniks, and You can dig in it and see all this in action by > Yourself? It would be really interesting. > > Thanks. > > P.S. One more small question - as far as I know right now > ClojureScript doesn't support eval and requires Java for compiling, > any plans to support this in future? > ClojureScript compiler written in ClojureScript / JavaScript without > Java requirement? -- 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