I think the objective is to make read, read-string, etc. safe. Explicit use of eval is what it is...short of sandboxing, you're opting into all that eval implies.
- Chas Michael Fogus <mefo...@gmail.com> wrote: >> RuntimeException EvalReader not allowed when *read-eval* is false. > >The problem is that the second eval gets (<the actual + function> 1 2 >3) which invokes the right pathway triggering the exception. You can >trigger the same exception by: > >(binding [*read-eval* false] (eval (list + 1 2 3))) > >People are not sending actual functions across the wire, so the only >way to trigger this is to do some kind of pre-processing of symbols to >functions or perhaps: > >(binding [*read-eval* false] (eval '(eval (quote (+ 1 2 3))))) >;;=> 6 > >Whoops! > >Maybe setting *read-eval* to false is not enough. > >-- >-- >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 >Note that posts from new members are moderated - please be patient with >your first post. >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 >--- >You received this message because you are subscribed to the Google >Groups "Clojure" group. >To unsubscribe from this group and stop receiving emails from it, send >an email to clojure+unsubscr...@googlegroups.com. >For more options, visit https://groups.google.com/groups/opt_out. -- -- 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 Note that posts from new members are moderated - please be patient with your first post. 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.