Python’s Valentines Day Gift to Clojure
sunng.info
sunng.info
>>> dict(user='root', password='secret') {'password': 'secret', 'user': 'root'} >>> "marry had a little lamb".split() ['marry', 'had', 'a', 'little', 'lamb']
In fact, as I understand it, some of the changes to the reader in 1.4 are aimed at working on this goal. You can read a little about this at http://dev.clojure.org/pages/viewpage.action?pageId=950382
If you like clojure and must program in python, have an idea of how to implement something in clojure but not in python then just use clojure now.
edit: google results for:
"python xml" : 359,000
"python json" : 48,600
"python s-expression" : 5,440How're they more mature than s-expressions? I don't think everything needs citations, but I'd like to see some supporting evidence for this particular claim.
A better argument would have been showing that both xml and json can be parsed/generated through standard Python libraries. S-expressions don't support this behavior.
* Age? s-expressions predate python by a fair amount.
* Parsers? just about every language I know has a lisp
interpreter embedded in it. s-expressions therefore
have
parsers in pretty much all languages.
* Market Share? well xml and json may win there but I'm
not sure that's a valid reason to discount
s-expressions