> There's a library in clojure.contrib which allows to create your own
> getters / setters for maps :
>
> http://richhickey.github.com/clojure-contrib/fnmap-api.html

This is actually a very cool approach and it fits my ideas quite well.
The only problem I have with it is that it constructs a whole new map
from keyvals. That sounds a bit expensive. Maybe it is possible do
something similar which just wraps over an existing map. I see if I
can come up with something like that. I understand that this doesn't
guarantee my the consistency within the map as I get it from having
all insertions done through the same setter. But in a case where one
just wants some transformation relying on the getter, that doesn't
matter.

Anyway, thanks for the pointer to this lib!

-- 
Florian Ebeling
florian.ebel...@gmail.com
-- 
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