Thursday, 9 February 2017

StackOverflow Finds - Pt1

http://stackoverflow.com/questions/33090193/linguistic-meaning-of-let-variable-in-programming

(defun should-be-constant ()
  '(one two three))

(let ((stuff (should-be-constant)))
  (setf (third stuff) 'bizarre))   ; bad!

(should-be-constant)   ; returns (one two bizarre)
??? :]

No comments: