Skip to main content

*read-eval*

value

clojure.tools.reader/*read-eval*

Defaults to true. ***WARNING*** This setting implies that the full power of the reader is in play, including syntax that can cause code to execute. It should never be used with untrusted sources. See also: clojure.tools.reader.edn/read. When set to logical false in the thread-local binding, the eval reader (#=) and *record/type literal syntax* are disabled in read/load. Example (will fail): (binding [*read-eval* false] (read-string "#=(* 2 21)")) When set to :unknown all reads will fail in contexts where *read-eval* has not been explicitly bound to either true or false. This setting can be a useful diagnostic tool to ensure that all of your reads occur in considered contexts.

No examples yet. Be the first to add one!