# Attributes with function name

**URL:** <https://forum.elixirforum.com/t/attributes-with-function-name/38988>\
**Category:** Questions\
**Tags:** metaprogramming, troubleshooting, module-attribute\
**Created:** [April 15, 2021, 2:39pm UTC](https://forum.elixirforum.com/t/attributes-with-function-name/38988 "2021-04-15T14:39:43Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Nicd](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/nicd/32/2357_2.png) [@Nicd](https://forum.elixirforum.com/u/Nicd)\
**Post date:** [April 15, 2021, 2:51pm UTC](https://forum.elixirforum.com/t/attributes-with-function-name/38988/2 "2021-04-15T14:51:58Z")

</div>

> [@enobat](#):
>
> `@description2 A.function1`

You could use a function reference there, like

```elixir
@description &A.function1/1

```

But I’m wondering what you want to do with it? Obviously module A would then need to be compiled first.

---

_[View the full topic](https://forum.elixirforum.com/t/attributes-with-function-name/38988)._
