Zulip Chat Archive

Stream: new members

Topic: what does `export` do?


Eric Rodriguez (Dec 09 2021 at 15:16):

i've seen in many files export, and I can't seem to figure out what it does... it doesn't seem to be in the #glossary either.

Horatiu Cheval (Dec 09 2021 at 15:27):

I think it makes names visible outside of the namespace they are defined in. For instance here you can always use dist without having to type has_dist.dist or writing open has_dist (dist) first, because dist is exported


Last updated: Dec 20 2023 at 11:08 UTC