contact
2018-10-28 09:08:08

Hello! Is there a way to parameterize a module instance? The intent is to have procedures in “utils.rkt” to take into account a context represented here by “config.rkt” something like:

utils.rkt
---------
  #lang racket

  (require "config.rkt")
  (require "module.rkt")


  (define parameterized_module (module config))

  (provide parameterized_module)


some_other_module.rkt
---------------------
  #lang racket

  (require "utils.rkt")

  …

samth
2018-10-28 12:27:44

@contact you can use units if you really want parametrized modules, but mostly I’d just recommend using a function


contact
2018-10-28 12:49:43

@samth Ok, thanks!


paul
2018-10-28 13:53:09

I thought I might take this issue, since it appears to be fixed:

https://github.com/racket/racket/issues/1434

How do I assign it to myself? Perhaps there is an explanation that I didn’t find.


samth
2018-10-28 16:20:34

@paul unfortunately you can’t be assigned issues unless you’re a committer to the repository


lucagiuggia
2018-10-28 23:08:17

@lucagiuggia has joined the channel


paul
2018-10-29 00:06:14

@samth Aha. Matthew thought it would make sense to try to close a few of the older issues. How should I proceed?


samth
2018-10-29 01:16:17

@paul if you comment on them that they are no longer relevant or are fixed then I can click the close button