I need to dynamically reify some java interfaces based on data from a map. One way I can see to do this is to generate the reify code with a function using syntax quotes, quotes and unquote and unquote splice. And then evaluate it using eval. I hesitate using eval, but is eval the right tool for this case?
Normally I would write a macro to generate code. A macro is good for generating code from source code. But in this case the data that is used to generate the code is coming from a var that holds a data structure.
Any thoughts about when it is okay/good to use eval in Clojure?