[ prog / sol / mona ]

prog


Lexical Scoping == Tyranny

9 2020-11-01 20:37

MIT Scheme:

(define s "I ENJOY TYRANNY")

(define (set-me-free)
  (display s))

(let ((s "I AM FREE"))
  (set-me-free))

Common Lisp:

(defvar s "I ENJOY TYRANNY")

(defun set-me-free ()
  (print s))

(let ((s "I AM FREE"))
  (set-me-free))
48


VIP:

do not edit these