Namespaced XML is inherently value-comparable and unambiguous. It would be shame to give up on that, and disperse the burden throughout every layer of library and consumer.
Pretty-printing need not be a concern of the XML parsing library. Everyone seems to be interested nowadays in easing the usage of namespaced keywords. Perhaps printing could be improved (globally) to use the caller's keyword namespace aliases. Anyway, pretty-printing is always expensive. If a keyword-conversion step must encumber either pretty-printing or everything else, better do it in pretty-printing. Keyword *literals* make the source code easy to read, but composing keywords programmatically with a caller-provided namespace might be intolerable. Moreover, providing those namespace mappings would be a messy headache for the consumer of XML processing libraries. The mappings would have to pass through layer after layer. No doubt, every library will provide different defaults. One false step, and you would lose value comparability. By contrast!, with well-known keyword namespaces, computed by a well-known function from their respective well-known namespace URI, everyone could write source code using keyword literals with whatever keyword namespace alias they want, and XML structures would be value-comparable. In the short run, the best pretty-print might be actual XML serialization. In the long run, I predict, Clojure's namespaced keywords will go down as smooth as fudge. By all means, use an encoding more legible than Base64. URLEncoder could be an example in the way it uses %. Pick an escape character that's legal in Clojure namespace names, but unusual in the best-known namespace URIs. Apostrophe? -- 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 unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.