Open
Description
evaluation.adoc
states that "Any object other than those discussed above will evaluate to itself," without mentioning function objects. In CLJ-1206, it was reported that certain function objects cause errors in eval
, when nested in a form (and since that bug was opened, several others have independently run into this problem and posted on the mailing list).
A fix for CLJ-1206 was declined, with the prevailing opinion seeming to be that eval
should not be applied to non-data-structure'y things. If that's the case, clojure.org/reference/evaluation should probably be updated to correctly describe the semantics of eval
, and which "other objects" are guaranteed to evaluate to themselves, versus error, versus trigger undefined behavior.