Interesting idea.
It is somewhat different than what the proposal above, in that this would introduce foo
as a module and the macro would do the reexport automatically, rather than never creating foo
as an item to begin with. Though, I suppose that distinction is academic, perhaps?
I’ll add it to the list of alternatives.