# Underscore syntax and anonymous modules?

**URL:** <https://discourse.julialang.org/t/underscore-syntax-and-anonymous-modules/110003>\
**Category:** General Usage\
**Tags:** module\
**Created:** [February 9, 2024, 6:14pm UTC](https://discourse.julialang.org/t/underscore-syntax-and-anonymous-modules/110003 "2024-02-09T18:14:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sadish-d](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sadish-d/32/48058_2.png) [@sadish-d](https://discourse.julialang.org/u/sadish-d)\
**Post date:** [February 9, 2024, 6:14pm UTC](https://discourse.julialang.org/t/underscore-syntax-and-anonymous-modules/110003/1 "2024-02-09T18:14:42Z")

</div>

So I can’t do `module _ end`? Is that still consistent with “syntax requires a variable but the variable is never used”? It would be useful in creating different namespaces.

---

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [February 9, 2024, 6:18pm UTC](https://discourse.julialang.org/t/underscore-syntax-and-anonymous-modules/110003/2 "2024-02-09T18:18:59Z")

</div>

> [@sadish-d](#):
>
> So I can’t do `module _ end`? […] It would be useful in creating different namespaces.

No. See [Anonymous or temporary module syntax · Issue #40189 · JuliaLang/julia · GitHub](https://github.com/JuliaLang/julia/issues/40189) — you can do

```julia
@eval Module() begin
    # put code here
end

```

to have an anonymous module.

See also [How do you make anonymous module w/ variables?](https://discourse.julialang.org/t/how-do-you-make-anonymous-module-w-variables/4068)
