# Why Base doesn't reexport from submodules?

**URL:** https://discourse.julialang.org/t/why-base-doesnt-reexport-from-submodules/8034
**Category:** New to Julia
**Created:** [December 28, 2017, 6:36am UTC](https://discourse.julialang.org/t/why-base-doesnt-reexport-from-submodules/8034 "2017-12-28T06:36:33Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![wrgr](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wrgr/32/2796_2.png) [@wrgr](https://discourse.julialang.org/u/wrgr)
#### Post date: [December 28, 2017, 6:36am UTC](https://discourse.julialang.org/t/why-base-doesnt-reexport-from-submodules/8034/1 "2017-12-28T06:36:33Z")

</div>

I was looking at `baremodule Base`, and noticed that it has no exports.  
Fox example there is the following line:

```julia
using .Iterators: zip, enumerate

```

For functions like `zip, enumerate` to be available after `using Module`, at the moment I’m forced to reexport them:

```julia
module Module

export f

include("submodule.jl")
using .SubModule: f

end

```

But `Base` seemingly does no such thing, and `zip` and `enumerate` are available to us without using `Base.zip(...)`. What’s the catch, could someone please explain?

---

<div class="post-metadata">

### Author: ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)
#### Post date: [December 28, 2017, 10:47am UTC](https://discourse.julialang.org/t/why-base-doesnt-reexport-from-submodules/8034/2 "2017-12-28T10:47:54Z")

</div>

`Base` have all the exports in the [`base/exports.jl`](https://github.com/JuliaLang/julia/blob/master/base/exports.jl) file, and in particular [here](https://github.com/JuliaLang/julia/blob/1238bad60fc7d3b5984fbf25423d60159147462c/base/exports.jl#L822-L823) you find `zip` and `enumerate`.

---

<div class="post-metadata">

### Author: ![wrgr](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wrgr/32/2796_2.png) [@wrgr](https://discourse.julialang.org/u/wrgr)
#### Post date: [December 28, 2017, 12:14pm UTC](https://discourse.julialang.org/t/why-base-doesnt-reexport-from-submodules/8034/3 "2017-12-28T12:14:35Z")

</div>

Wow, thanks @fredrikekre. I thought some magic is going on here.
