Since files starting with #lang are modules, it does nothing if you load them. (He's actually doing something, but probably not something that will help you.) It's best not to use load at all, just pretend it's not there.
Now using require is the right thing, but what it does is create an instance of the module and give you access to the names it provides. In your case, you did not specify anything, which means that you cannot use your hello . To do this, you can add (provide hello) to the file. But this is most likely not what you want, as it seems like you want to debug the code. (That is, you don’t want to provide anything from your module, just work on things.)
So the right thing is enter! , or if you use xrepl, then there is a more convenient command ,en . This will create an instance of the module and force repl to use the module namespace so that you can access everything. (And you do not need to load or require it.) You can also use it several times to reload the code if you change it. But note that there were some problems with it, so you may need to install a nightly build to work with it.
Finally, you probably know this, but working with DrRacket will simplify the overall work.
Eli barzilay
source share