Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAQ on difference between "using" and "import" misleading? #43425

Closed
fingolfin opened this issue Dec 15, 2021 · 2 comments · Fixed by #47614
Closed

FAQ on difference between "using" and "import" misleading? #43425

fingolfin opened this issue Dec 15, 2021 · 2 comments · Fixed by #47614
Labels
docs This change adds or pertains to documentation

Comments

@fingolfin
Copy link
Member

The FAQ referenced in the title says:

There is only one difference [...].

It then proceeds to explain that they do "soft" versus "hard" bindings (to use the terminology from issue #39235).

But surely there are other differences? E.g.:

  • using honors the export lists, while import does not
  • import Foo.bar is the same as import Foo: bar, but using Foo.bar is different from using Foo: bar (at least when Foo.bar isn't a module)
  • ... ?

It'd be great if that FAQ could be improved to explain this better. While at it, perhaps it could also get a link to https://docs.julialang.org/en/v1/manual/modules "for further details".

(I might take a stab at doing this, but I am not sure when I might find the time; but since I stumbled over this before, I thought I should at least log an issue about it.)

@rfourquet rfourquet added the docs This change adds or pertains to documentation label Dec 15, 2021
@austin-pereira
Copy link

Can I work on this issue

@oscardssmith
Copy link
Member

always.

vtjnash pushed a commit that referenced this issue Feb 10, 2023
Fix #43425

Co-authored-by: Allen Hill <halleysfifthinc@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs This change adds or pertains to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants