2 ms·
Simply not passing any of these parsed expressions to your eval function. ANSI Common Lisp presents a pitfall here in that it features read-time evaluation via
by kazinator 8y ago
Simply not passing any of these parsed expressions to your eval function.
ANSI Common Lisp presents a pitfall here in that it features read-time evaluation via the #. (hash dot) syntax. For instance #.(+ 2 2) produces the object 4. After seeing #., he reader scans the (+ 2 2) expression, evaluates it immediately, and substitutes the result. When reading untrusted data in Common Lisp, the * read-eval * variable must be set to nil to disable hash-dot.
Lisps that don't have a read-time-eval escape mechanism don't require anything.