Re: Using a keyword as object get method

2010-09-09 Thread Alan
user> (bean (java.io.File. "tmp.txt")) {:path "tmp.txt", :parent nil, :hidden false, :parentFile nil, :canonicalFile #, :freeSpace 0, :absoluteFile #, :class java.io.File, :name "tmp.txt", :absolutePath "/home/akm/src/clojure/ddsolve/tmp.txt", :directory false, :usableSpace 0, :canonicalPath "/home

Using a keyword as object get method

2010-09-09 Thread Sam Tingleff
I'm using thrift-generated Java objects heavily inside hadoop and it would be nice to access object properties using keyword notation instead of .getPropertyX. At platform speed of course. Searching the list shows someone else interested in the same thing but no answer. http://groups.google.com/g