On Apr 19, 4:00 pm, Timo Mihaljov <noid....@gmail.com> wrote: > What's the idiomatic Clojure way of dealing with this issue?
I'd be tempted to use accessor functions, like: (defn get-name [person] (:name person)) When the data structure changes, I update the function: (defn get-name [person] (str (:first-name person) " " (:last-name person))) - James --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---