# Module with global variables vs initialization with \`\_\_init\_\_\` function

**URL:** https://discourse.julialang.org/t/module-with-global-variables-vs-initialization-with-init-function/123668
**Category:** New to Julia
**Tags:** question
**Created:** [December 10, 2024, 3:42pm UTC](https://discourse.julialang.org/t/module-with-global-variables-vs-initialization-with-init-function/123668 "2024-12-10T15:42:44Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![world-peace](https://avatars.discourse-cdn.com/v4/letter/w/9f8e36/32.png) [@world-peace](https://discourse.julialang.org/u/world-peace)
#### Post date: [December 10, 2024, 4:21pm UTC](https://discourse.julialang.org/t/module-with-global-variables-vs-initialization-with-init-function/123668/3 "2024-12-10T16:21:46Z")

</div>

(edit: woops - replied to the wrong post)

You’ve just answered my next question, which I just posted [here](https://discourse.julialang.org/t/use-of-global-in-a-module-for-global-variable-is-pointless/123669)

---

_[View the full topic](https://discourse.julialang.org/t/module-with-global-variables-vs-initialization-with-init-function/123668)._
