3 ms·
(Although, if you anticipate this, you can call the ref (e.g. `(#’foo arg)`) rather than the function `(foo arg)`. But this means that you have to plan the dyna
by fiddlerwoaroof 8y ago
(Although, if you anticipate this, you can call the ref (e.g. `(#’foo arg)`) rather than the function `(foo arg)`. But this means that you have to plan the dynamically modifiable parts out ahead of time.
- unlogic 8y agoThat's not true. You only have to prepend #' if you pass the function by value (as in your web server handler example). If you call the function by name yourself, like (foo arg), and you recompile foo, any code that called foo will see the new version.
- fiddlerwoaroof 8y agoHmm, I’ll try it again, but I remember issues with the function call syntax too. Iirc, it had to do with the fact that redefinitions don’t count if the use site is running in another thread. But I’ll double-check this when I get a chance.