capfredf
2022-1-13 18:02:13

how can I dynamic-require a submodule within its enclosing module?


samth
2022-1-13 18:04:47

You might find quote-module-name useful.


cperivol
2022-1-13 18:07:10

Is there a standard way (ie without gutting the compiler source) to use cify for arbitrary racket (for some definition of arbitrary)?


samth
2022-1-13 18:11:07

No, there’s not a standard way, and it won’t work on actually arbitrary racket, but you could just use the code in schemify and cify (after using the expander to generate a flattened linklet)


capfredf
2022-1-13 18:11:53

Its sibling quote-module-path turns out to be what I want. Thanks for the pointer!


cperivol
2022-1-13 18:12:24

Would you recommend that I copy the code into my project or is there a way to require it?


samth
2022-1-13 18:13:48

It’s just there in the source code, so you can require it the same as anything else. You can certainly install those directories as packages if you want.


cperivol
2022-1-13 18:21:14

Indeed I can load it to a repl without any requirements. That’s a nice start