[ prog / sol / mona ]

prog


Lexical Scoping == Tyranny

17 2020-11-02 17:39

>>15

So what?

(define (create-me)
  (define s (make-parameter "I AM BROKEN")))

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

(create-me)

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

It's not like dynamic scoping it inherintly more powerful

Dynamic scoping is not arbitrarily limited, thus less tyrannical.

48


VIP:

do not edit these