# How to avoid repeatedly calling include()?

**URL:** <https://discourse.julialang.org/t/how-to-avoid-repeatedly-calling-include/54347>\
**Category:** New to Julia\
**Tags:** question\
**Created:** [January 31, 2021, 10:28pm UTC](https://discourse.julialang.org/t/how-to-avoid-repeatedly-calling-include/54347 "2021-01-31T22:28:15Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![dave7895](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dave7895/32/21269_2.png) [@dave7895](https://discourse.julialang.org/u/dave7895)\
**Post date:** [February 12, 2021, 12:14am UTC](https://discourse.julialang.org/t/how-to-avoid-repeatedly-calling-include/54347/21 "2021-02-12T00:14:42Z")

</div>

I would think that you would include the file and then you may call the function, or am I misunderstanding something?

---

<div class="post-metadata">

**Author:** ![Raf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/raf/32/3383_2.png) [@Raf](https://discourse.julialang.org/u/Raf)\
**Post date:** [February 12, 2021, 2:59am UTC](https://discourse.julialang.org/t/how-to-avoid-repeatedly-calling-include/54347/22 "2021-02-12T02:59:46Z")

</div>

It may also be easiser, while you’re getting started with julia to not use modules and just share a namespace - multiple dispatch means you can reuse your own and base methods for new types, and namespace clashes are less important. The NameOfPackage.jl file is often the only `module`, and usually has all of the include statements in it in one place. Some packages use multiple modules, but often namespace boundaries occur only at the package level.

You will also find with julia, unlike some static languages, that you can call functions defined in later `includes` from earlier includes, so are freed from that kind of constraint and worrying too much about `includes` and where you can call functions - although types used in method signatures and inheritance need to be defined previously.

[Previous page](https://discourse.julialang.org/t/how-to-avoid-repeatedly-calling-include/54347.md?page=1)
