Hi jgart, jgart <jg...@dismail.de> writes:
> Hi, > > When should I re-export something in a module? > > docs say the following: > > Add all variables (which must be symbols or pairs of symbols) to the > list of re-exported bindings of the current module. Pairs of symbols > are handled as in export. Re-exported bindings must be imported by the > current module from some other module. > > The docs don't explain why you would want to even do a re-export in the first > place... I've used in two places, I think: 1. Move code around while preserving backward compatibility. 2. For convenience (when people importing B would typically also want something from A). Best used very sparingly, or not at all, I'd say :-). -- Thanks, Maxim