# Are extension packages importable?

**URL:** <https://discourse.julialang.org/t/are-extension-packages-importable/92527>\
**Category:** General Usage\
**Tags:** package-extensions\
**Created:** [January 4, 2023, 9:15pm UTC](https://discourse.julialang.org/t/are-extension-packages-importable/92527 "2023-01-04T21:15:14Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![cjdoris](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cjdoris/32/213133_2.png) [@cjdoris](https://discourse.julialang.org/u/cjdoris)\
**Post date:** [January 6, 2023, 12:56pm UTC](https://discourse.julialang.org/t/are-extension-packages-importable/92527/5 "2023-01-06T12:56:46Z")

</div>

To be concrete, suppose the package `Foo` has an extension `Ext` which depends on `Bar` and `Baz`.

Then it may be nice to let

```julia
pkg> add Foo[Ext]

```

be a shorthand for

```julia
pkg> add Foo, Bar, Baz

```

(thus allowing the fact that `Ext` depends on `Bar` and `Baz` to be an implementation detail).

And further, it may be nice to let

```julia
import Foo[Ext]

```

be a shorthand for

```julia
import Foo, Bar, Baz
const Ext = Base.get_extension(Foo, :Ext)

```

---

_[View the full topic](https://discourse.julialang.org/t/are-extension-packages-importable/92527)._
