Hi Martin,

It's definitely a concern, keeping track of map keys and finding mis-typed 
names. I always use keywords instead of accessor functions, though. If there 
were functions, it's just one more thing to rename when refactoring.

Pre/post conditions are your friend here. Write a validator function that 
checks the set of keys in a data structure, and you can use that on 
functions that have to deal with that structure. You can use the same 
function in your tests.

-S

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