This function can be used to tell a sandbox how to conuse the code that it
passed to it.
Usage: (add-reader-to-sandbox sandbox read-string)
(defn add-reader-to-sandbox
"This function can be used to tell a sandbox how to conuse the code that it
passed to it.
Usage: (add-reader-to-sandbox sandbox read-string)"
[sandbox reader-fn]
(fn [code & params]
(binding [*read-eval* false]
(apply sandbox (reader-fn code) params))))
Comments top
No comments for add-reader-to-sandbox. Log in to add a comment.