Re: Review my code - delay-map

2011-11-18 Thread Chris Perkins
Meikel, That's very helpful. You and I took essentially the same approach - wrap a real map and delegate most operations to it. You used deftype, which I was afraid to try because there seemed to be too many interfaces and too many methods to implement, so I used proxy and APersistentMap to

Re: Review my code - delay-map

2011-11-18 Thread Meikel Brandmeyer (kotarak)
Hi, glad it helped. There are still intresting questions. For example transients. It'd sure be interesting to have this also. Meikel -- 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

Review my code - delay-map

2011-11-17 Thread Chris Perkins
I'm trying to implement this: I want an object that behaves just like a normal clojure map, except in one very specific case - if a value is a Delay, then getting that value out of the map will force it. Other than that one difference, it should be indistinguishable from a regular map (or as

Re: Review my code - delay-map

2011-11-17 Thread Meikel Brandmeyer
Hi, without looking too much at your code, I might suggest you have look at my lazy map library: http://bit.ly/vNA56f. It basically solves the same problem. You can compare your solution to mine. If you want to discuss anything, feel free to go ahead. Sincerely Meikel PS: It's also on