# How to return a macro from a macro?

**URL:** <https://discourse.julialang.org/t/how-to-return-a-macro-from-a-macro/139612>\
**Category:** General Usage\
**Tags:** question, macros\
**Created:** [September 22, 2026, 4:46pm UTC](https://discourse.julialang.org/t/how-to-return-a-macro-from-a-macro/139612 "2026-09-22T16:46:15Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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:** [September 23, 2026, 12:23pm UTC](https://discourse.julialang.org/t/how-to-return-a-macro-from-a-macro/139612/7 "2026-09-23T12:23:47Z")

</div>

> [@ysaak](#):
>
> But I’m new to Julia and I can’t do it by reading Julia’s documentation.

Generically I wouldn’t recommend worrying about macros when you are first starting out. They can be a very useful tool, but only in a small minority of cases, and are easy to misunderstand. See also the discussion in [How to warn new users away from metaprogramming](https://discourse.julialang.org/t/how-to-warn-new-users-away-from-metaprogramming/35022)

---

_[View the full topic](https://discourse.julialang.org/t/how-to-return-a-macro-from-a-macro/139612)._
