Hello.

Is there a way in Racket to have a module (say, "my-module") which provides just one form (say, "my-begin"), and this form works the same way as standard begin, but inside it all the bindings from the my-module become visible.

So the module may look like this:

--- my-module.rkt ---
#lang racket
(provide my-begin)

(define foo
  ...
---------------------

And the code using the module may look like this:

--- main.rkt ---
#lang racket
(require "my-module.rkt")

(my-begin
  (foo
    ...
-----------------

Thank you.

--
Best regards, Maxim.
_________________________________________________
 For list-related administrative tasks:
 http://lists.racket-lang.org/listinfo/users

Reply via email to