# When to use \`using Package: function\` and when to use \`import Package: function\`

**URL:** <https://discourse.julialang.org/t/when-to-use-using-package-function-and-when-to-use-import-package-function/115091>\
**Category:** General Usage\
**Created:** [June 2, 2024, 9:50pm UTC](https://discourse.julialang.org/t/when-to-use-using-package-function-and-when-to-use-import-package-function/115091 "2024-06-02T21:50:06Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![Barget](https://avatars.discourse-cdn.com/v4/letter/b/94ad74/32.png) [@Barget](https://discourse.julialang.org/u/Barget)\
**Post date:** [June 5, 2024, 8:43pm UTC](https://discourse.julialang.org/t/when-to-use-using-package-function-and-when-to-use-import-package-function/115091/21 "2024-06-05T20:43:54Z")

</div>

> [@Torkel](#):
>
> ```julia
> import Package as Pk
> using Package: Package as Pk 
> 
> ```

Wait, is there a practical difference between the two?

I feel the latter shall be preferred, in order to work in “read-only” mode, but I’m not sure.

[Previous page](https://discourse.julialang.org/t/when-to-use-using-package-function-and-when-to-use-import-package-function/115091.md?page=1)
