# Macro CheatSheet for Julia 2024.01

**URL:** https://discourse.julialang.org/t/macro-cheatsheet-for-julia-2024-01/109291
**Category:** General Usage
**Tags:** macros, tutorials, cheatsheets
**Created:** [January 26, 2024, 9:47am UTC](https://discourse.julialang.org/t/macro-cheatsheet-for-julia-2024-01/109291 "2024-01-26T09:47:08Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Marcell\_Havlik](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marcell_havlik/32/37424_2.png) [@Marcell\_Havlik](https://discourse.julialang.org/u/Marcell_Havlik)
#### Post date: [January 26, 2024, 9:47am UTC](https://discourse.julialang.org/t/macro-cheatsheet-for-julia-2024-01/109291/1 "2024-01-26T09:47:09Z")

</div>

Hey Julianners,

I created a not so hard to read and hopefully clean Julia Cheat Sheet for macros.

This is I think a very good way to fill the gaps on the harder parts.  
[JuliaMacroCheatSheet](https://github.com/Cvikli/JuliaMacroCheatSheet)

It is worth to check it here the page is wider: [JuliaMacroCheatSheet/README.md at main · Cvikli/JuliaMacroCheatSheet · GitHub](https://github.com/Cvikli/JuliaMacroCheatSheet/blob/main/README.md)

Check it out and let me know if you see any mistakes. Any contribution is welcomed!  
I hope it can be helpful for a lot of people.

---

<div class="post-metadata">

### Author: ![mnemnion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mnemnion/32/206596_2.png) [@mnemnion](https://discourse.julialang.org/u/mnemnion)
#### Post date: [January 26, 2024, 2:11pm UTC](https://discourse.julialang.org/t/macro-cheatsheet-for-julia-2024-01/109291/2 "2024-01-26T14:11:34Z")

</div>

This would have really helped me when I was starting out with macros! One correction: Interpolated variables are qualified in the module where the macro is defined, which isn’t necessarily `Main`: a macro in `MyModule` will expand `a` to `MyModule.a`. I’m still giving it a read through but this stood out.

---

<div class="post-metadata">

### Author: ![Marcell\_Havlik](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marcell_havlik/32/37424_2.png) [@Marcell\_Havlik](https://discourse.julialang.org/u/Marcell_Havlik)
#### Post date: [January 27, 2024, 8:51pm UTC](https://discourse.julialang.org/t/macro-cheatsheet-for-julia-2024-01/109291/3 "2024-01-27T20:51:56Z")

</div>

Thanks! 😉 For me it would helped a lot too.

Indeed, good point! I corrected it!
