3 ms·
This was a great time for this to be posted. I've been spending a lot of time with Racket, and closures are a big part of that. I believe (though maybe I'm wron
by 333c 7y ago
This was a great time for this to be posted. I've been spending a lot of time with Racket, and closures are a big part of that. I believe (though maybe I'm wrong) that Racket's closures don't have the issue described in this chapter of closing over values vs. variables due to the functional nature of the language.
- munificent 7y agoThey do, actually. Scheme supports `(set! some-var)` to reassign values to variables, which means you can tell if a closure captures a value or variable.
- 333c 7y agoCool, thanks for bringing my attention to this!