[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: When do you re-export?

From: Maxim Cournoyer
Subject: Re: When do you re-export?
Date: Sat, 22 Oct 2022 10:15:29 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux)

Hi jgart,

jgart <> 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 :-).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]