I am passing an actual symbol for a function as an argument to a Datomic query. Is this discouraged? Would you suggest generating the whole query dynamically instead (example would help)?
(d/q '[:find ?effect-o
:in $ % ?pred-fn
:where
[_ :my/effect_o ?effect-o]
[(db.utilities/binary_sentiment ?pred-fn ?effect-o)]]
(get_db) ALL_RULES pred_fn)
(defn binary_sentiment [binary_pred_fn score]
(binary_pred_fn score)
)