michael.hamel80
2020-7-28 08:13:15
@michael.hamel80 has joined the channel
chansey97
2020-7-28 20:25:49
After learned more about Racket, I found a solution to this issue. We can use First-Class Units. For example, we can parameterize a “module” by lambda: (define your-unit@-maker
(lambda (x)
(unit
(import xxx^)
(export your-unit^)
;; you code here...
)))
(provide your-unit@-maker)
Now we no longer need the initial
function any more:smile:
More detail see https://docs.racket-lang.org/guide/units.html