# Macro in function scope

**URL:** <https://discourse.julialang.org/t/macro-in-function-scope/31858>\
**Category:** New to Julia\
**Tags:** macros, metaprogramming\
**Created:** [December 4, 2019, 2:53pm UTC](https://discourse.julialang.org/t/macro-in-function-scope/31858 "2019-12-04T14:53:27Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![GunnarFarneback](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gunnarfarneback/32/1827_2.png) [@GunnarFarneback](https://discourse.julialang.org/u/GunnarFarneback)\
**Post date:** [December 4, 2019, 10:47pm UTC](https://discourse.julialang.org/t/macro-in-function-scope/31858/7 "2019-12-04T22:47:04Z")

</div>

See [Passing a string into function as a expression - #14 by GunnarFarneback](https://discourse.julialang.org/t/passing-a-string-into-function-as-a-expression/31625/14) if you really want to explore evaluating strings. Be aware that it’s in many ways an inferior solution and definitely slower, but sometimes it may be what you want.

---

_[View the full topic](https://discourse.julialang.org/t/macro-in-function-scope/31858)._
