I want to propose another interface:
(my-provide
#:default + - *
#:override
[my-+ +])
which expands to:
(provide - *)
(provide (rename-out [my-+ +]))
and checks that + must be in the #:default section (because we are
overriding it, it’d better already exist).
More generally:
(my-provide
Ah, I see, that's a nice idea!
One problem is have well over a dozen of these that I want to pass-through,
but I suppose I could write a
(rename-prefix ...)
that turns into a bunch of define's. I'd have to be careful to not miss any.
Another issue is that I have to redefine some of the langua
What if you instead rename the lang's imports (e.g. with prefix-in), and
rely on the fact that your definitions override those supplied by the lang?
That way you could write the exact same provide for all the files:
"provide-if-not-defined" is simply provide. However, you would need to
manually
3 matches
Mail list logo