# Reflection in Elixir

**URL:** <https://forum.elixirforum.com/t/reflection-in-elixir/32950>\
**Category:** Questions\
**Tags:** learning-elixir, dynamic, reflection\
**Created:** [July 9, 2020, 3:19pm UTC](https://forum.elixirforum.com/t/reflection-in-elixir/32950 "2020-07-09T15:19:44Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![shanesveller](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/shanesveller/32/7962_2.png) [@shanesveller](https://forum.elixirforum.com/u/shanesveller)\
**Post date:** [July 9, 2020, 9:15pm UTC](https://forum.elixirforum.com/t/reflection-in-elixir/32950/9 "2020-07-09T21:15:15Z")

</div>

> [@lukaszsamson](#):
>
> module alias is just an atom, you can generate it in the runtime by format string expressions, e.g. `:"Elixir.My.#{prefix}Module"`

This particular piece works fine as-is, but is safest to do with [Module.concat/1](https://hexdocs.pm/elixir/Module.html#concat/1) or better still, [Module.safe\_concat/1](https://hexdocs.pm/elixir/Module.html#safe_concat/1) or their `/2` variants.

---

_[View the full topic](https://forum.elixirforum.com/t/reflection-in-elixir/32950)._
