Hi Kees-Jochem, Am 13.01.2009 um 12:41 schrieb Kees-Jochem Wehrmeijer:
This looks really cool. I've actually been experimenting with exactly the same thing. One thing I thought about (but didn't implement), was using some kind of lazy hash map, for the request, so that it only calls the methods (like getServerPort) if you need them. I don't really know how hard or easy that would be though.
I implemented the lazy-map package, which provides lazy versions of all the map types of clojure: hash-map, sorted-map and struct-map. Complete with lazy map entries and lazy-assoc. A value is only evaluated when really accessed. In case you are interested, here's the link: http://kotka.de/projects/clojure/lazy-map.html Sincerely Meikel
smime.p7s
Description: S/MIME cryptographic signature