I did not know about lazy map either… This might be exactly what I was 
needed.  Maps with referentially transparent properties rather than fields. 
 A way to make minor changes to map representation without adding an api in 
advance, introducing breaking changes, redundant properties, or converters 
and still work with the clojure core apis.  This might make the simple 
refactoring a bit easier.  

On Monday, June 18, 2012 8:48:37 AM UTC-6, Vinzent wrote:
>
> Yeah, I'm waiting for concrete example too.
>
> By the way, if you really need to change :area from value to deferred 
> computation then you can just change your data structure implementation 
> from hash-map to lazy map (i.e. a map whose values are delays deref'd on 
> access). This would require changing code only in one place.
>

-- 
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

Reply via email to