6 ms·
How does this work if the closure will mutate a closed-over location? e.g. (let ((x 1)) (funcall (read (prin1-to-string (lambda () (setf x 3))))) (prin
by aidenn0 5y ago
How does this work if the closure will mutate a closed-over location? e.g.
(let ((x 1))
(funcall (read (prin1-to-string (lambda () (setf x 3)))))
(print x))
[edit]
Realized I have Emacs installed and tried it; the above prints "1" while calling the lambda without first serializing causes the (print x) to print "3"