Hi,
> ,require-reloadable "code.rkt"
that I can use whatever "code.rkt" provides, the same way as when I do
> ,require "code.rkt"
However, when I do just the ,require-reloadable I have to follow it up with a simple ,require for the provides to be available. Example: if code has (provide my-function), then I have (where ,rr is the short-form for ,require-reloadable and ,r for ,require):
> ,rr "code.rkt"
> (my-function args)
; my-function: undefined;
...
> ,r "code.rkt"
> (my-function args)
; Works fine, and seems like I can reload it afterwards
Is this how it should be - and if so, why? Might be worth pointing out in the docs if this behavior is expected, as I kept closing and restarting the repl to reload my changes since I couldn't get ,require-reloadable to work.
Cheers,
Marc