# Will using be deprecated in Julia 2.0?

**URL:** <https://discourse.julialang.org/t/will-using-be-deprecated-in-julia-2-0/57083>\
**Category:** General Usage\
**Tags:** question\
**Created:** [March 13, 2021, 4:35pm UTC](https://discourse.julialang.org/t/will-using-be-deprecated-in-julia-2-0/57083 "2021-03-13T16:35:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yifan\_Liu](https://avatars.discourse-cdn.com/v4/letter/y/4da419/32.png) [@Yifan\_Liu](https://discourse.julialang.org/u/Yifan_Liu)\
**Post date:** [March 13, 2021, 4:35pm UTC](https://discourse.julialang.org/t/will-using-be-deprecated-in-julia-2-0/57083/1 "2021-03-13T16:35:54Z")

</div>

I saw this issue in Julia 2.0 milestone. [https://github.com/JuliaLang/julia/issues/39235](https://github.com/JuliaLang/julia/issues/39235)

I was wondering if using will be deprecated in favor of import in Julia 2.0. If that is the case, I will stop using the using right now.

---

<div class="post-metadata">

**Author:** ![Skoffer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/skoffer/32/378_2.png) [@Skoffer](https://discourse.julialang.org/u/Skoffer)\
**Post date:** [March 13, 2021, 4:41pm UTC](https://discourse.julialang.org/t/will-using-be-deprecated-in-julia-2-0/57083/2 "2021-03-13T16:41:18Z")

</div>

You shouldn’t stop using `using`, because you will lose all exports. The proposal does not negate export semantic, so while it is not implemented `using` is needed, because it has a different meaning compared to `import`.

---

<div class="post-metadata">

**Author:** ![Sukera](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Sukera](https://discourse.julialang.org/u/Sukera)\
**Post date:** [March 13, 2021, 6:20pm UTC](https://discourse.julialang.org/t/will-using-be-deprecated-in-julia-2-0/57083/3 "2021-03-13T18:20:15Z")

</div>

Even if that proposal would be considered for 2.0, that is still very far in the future, so there’s no need change your habits now.

Still, I personally like it better to explicitly say what I use already, but you can do that with `using A: b` anyway. It’s a semantic distinction.

---

<div class="post-metadata">

**Author:** ![Yifan\_Liu](https://avatars.discourse-cdn.com/v4/letter/y/4da419/32.png) [@Yifan\_Liu](https://discourse.julialang.org/u/Yifan_Liu)\
**Post date:** [March 13, 2021, 9:44pm UTC](https://discourse.julialang.org/t/will-using-be-deprecated-in-julia-2-0/57083/4 "2021-03-13T21:44:51Z")

</div>

I understand that but the possibility of deprecating using still sounds scary to users like me.

---

<div class="post-metadata">

**Author:** ![Oscar\_Smith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oscar_smith/32/25343_2.png) [@Oscar\_Smith](https://discourse.julialang.org/u/Oscar_Smith)\
**Post date:** [March 14, 2021, 3:09am UTC](https://discourse.julialang.org/t/will-using-be-deprecated-in-julia-2-0/57083/5 "2021-03-14T03:09:29Z")

</div>

One thing to note is that we almost certainly will make upgrading to 2.0 as painless as possible. It seems likely that we’ll have a script that can automatically do the changes from 1.x to 2.0. Also, I wouldn’t be surprised if we end up not changing this. While it obviously would be better to have 1 keyword, breaking changes that don’t solve problems are often not worth fixing.

---

<div class="post-metadata">

**Author:** ![CameronBieganek](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cameronbieganek/32/6915_2.png) [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Post date:** [March 14, 2021, 3:27am UTC](https://discourse.julialang.org/t/will-using-be-deprecated-in-julia-2-0/57083/6 "2021-03-14T03:27:36Z")

</div>

> [@Oscar\_Smith](#):
>
> breaking changes that don’t solve problems are often not worth fixing.

It depends on the definition of “problem”. If getting rid of `using` makes the semantics of importing code simpler, then I think it would be worth it. After all this time I still sometimes get confused about the difference between the two and the reasoning behind the design.

---

<div class="post-metadata">

**Author:** ![DNF](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dnf/32/10191_2.png) [@DNF](https://discourse.julialang.org/u/DNF)\
**Post date:** [March 14, 2021, 9:02am UTC](https://discourse.julialang.org/t/will-using-be-deprecated-in-julia-2-0/57083/7 "2021-03-14T09:02:09Z")

</div>

> [@Yifan\_Liu](#):
>
> but the possibility of deprecating using still sounds scary to users like me.

Version 2.0 is likely to contain _several_ breaking changes. How will you handle that?

Are you sure you’re not overreacting? It seems like upgrading will be difficult if you’re that change-averse.
