# Create dynamic functions with Macro

**URL:** https://discourse.julialang.org/t/create-dynamic-functions-with-macro/119824
**Category:** General Usage
**Tags:** macros, metaprogramming
**Created:** [September 24, 2024, 5:48pm UTC](https://discourse.julialang.org/t/create-dynamic-functions-with-macro/119824 "2024-09-24T17:48:42Z")
**Posts on this page:** 1
**Showing post:** 5

<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 24, 2024, 9:38pm UTC](https://discourse.julialang.org/t/create-dynamic-functions-with-macro/119824/5 "2024-09-24T21:38:29Z")

</div>

What are you ultimately trying to do?

This seems like a [classic XY problem](https://en.wikipedia.org/wiki/XY_problem), where you are [reaching for metaprogramming](https://discourse.julialang.org/t/how-to-warn-new-users-away-from-metaprogramming/35022) when you should be using higher-order functions or similar.

---

_[View the full topic](https://discourse.julialang.org/t/create-dynamic-functions-with-macro/119824)._
