2009/8/6 James Reeves <weavejes...@googlemail.com>: > > On Aug 6, 8:31 pm, Howard Lewis Ship <hls...@gmail.com> wrote: >> I'm cringing at the sight of XML here. > > XML is frequently overused, but it is a good format for representing > dense, structured data. For example: > > <repository name="third-party"> > <package name="Compojure" href="/compojure.xml"/> > </repository> > > Compared to: > > {:type :repository > :name "third-party" > :content [{ :type :package > :name "Compojure" > :href "/compojure.xml" }]}
Surely we can do better with s-expressions: (:repository "third-party" [(:package "Compojure" "/compojure.xml")]) I guess it might get a bit trickier if you have a lot of optional attributes... And you can use the s-expressions as an on the wire interchange format as well, which works especially well if both ends are written in lisp. -- ! Lauri --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---