Oddbean new post about | logout
 @c39d2605 @4c603b88 @462ebf4c 
@338f82ef

Imagine that you have a module already written by someone that does the job you want to, but there is only one variable (example `(define pi 3.14)` ) that you want just override but otherwise would like everything to work as previously. Wouldn't like to copy-paste a one of code 
 @c65b183b @c39d2605 @462ebf4c @338f82ef whats the problem with `set!` in this scenario? 
 @4c603b88 @c39d2605 @462ebf4c @338f82ef 

it won't update setted variable's value in all procedures of `(X)` that uses `x`. `(define (square r pi) (* r r pi))` <-- here pi will stay 3.14 when `square` will be called from `(Y)` 
 @4c603b88 @c39d2605 @462ebf4c @338f82ef probably the answer given was toatally correct. set! and stuff will work in repl, but won't when launched in the testing env that I just set up. 
 @4c603b88 @c39d2605 @462ebf4c @338f82ef 

yep. the problem was totally in the testing env