# What are braces used for in Julia

**URL:** <https://discourse.julialang.org/t/what-are-braces-used-for-in-julia/65649>\
**Category:** New to Julia\
**Created:** [August 1, 2021, 10:44pm UTC](https://discourse.julialang.org/t/what-are-braces-used-for-in-julia/65649 "2021-08-01T22:44:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cybervigilante](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cybervigilante/32/26687_2.png) [@cybervigilante](https://discourse.julialang.org/u/cybervigilante)\
**Post date:** [August 1, 2021, 10:44pm UTC](https://discourse.julialang.org/t/what-are-braces-used-for-in-julia/65649/1 "2021-08-01T22:44:45Z")

</div>

I see braces used in various ways in Julia but I’m not quite sure what they are for. Here is one instance but I’ve also seen them seem to be for types. And kind of hard to find in the documentation.

Dict{String, Vector{T} where T} with 2 entries:  
“first name” =\> [“Rohit”, “Rahul”, “Akshat”]  
“customer age” =\> [15, 20, 25]

---

<div class="post-metadata">

**Author:** ![jzr](https://avatars.discourse-cdn.com/v4/letter/j/eb9ed0/32.png) [@jzr](https://discourse.julialang.org/u/jzr)\
**Post date:** [August 1, 2021, 10:47pm UTC](https://discourse.julialang.org/t/what-are-braces-used-for-in-julia/65649/2 "2021-08-01T22:47:55Z")

</div>

> Type parameters are introduced immediately after the type name, surrounded by curly braces

[https://docs.julialang.org/en/v1/manual/types/#Parametric-Types](https://docs.julialang.org/en/v1/manual/types/#Parametric-Types)

The manual has a lot of good material for getting started.

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [August 3, 2021, 8:55am UTC](https://discourse.julialang.org/t/what-are-braces-used-for-in-julia/65649/3 "2021-08-03T08:55:37Z")

</div>

Also note that while `{ }` outside type parameters are not assigned syntax, they parse perfectly fine, so you can use them in macros. See eg

[https://kristofferc.github.io/PGFPlotsX.jl/v1/man/options.html](https://kristofferc.github.io/PGFPlotsX.jl/v1/man/options.html)
