Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Emacs Lisp Readable Closures (2013).
(let ((x 1)) (funcall (read (prin1-to-string (lambda () (setf x 3))))) (print x))
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"
There are no comments on this comment yet.
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"