# Getting function name at comptime and stringify

**URL:** <https://ziggit.dev/t/getting-function-name-at-comptime-and-stringify/4459>\
**Category:** Help\
**Tags:** language\
**Created:** [May 27, 2024, 4:02pm UTC](https://ziggit.dev/t/getting-function-name-at-comptime-and-stringify/4459 "2024-05-27T16:02:12Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![Sze](https://ziggit.dev/user_avatar/ziggit.dev/sze/32/496_2.png) [@Sze](https://ziggit.dev/u/Sze)\
**Post date:** [May 27, 2024, 5:46pm UTC](https://ziggit.dev/t/getting-function-name-at-comptime-and-stringify/4459/15 "2024-05-27T17:46:13Z")

</div>

> [@nyc](#):
>
> This really should exist and shouldn’t be so difficult.

I think one reason why this might be deliberately difficult is to avoid exposing things to the user which then need to be supported by the compiler and create additional complexity in it, but I am not completely sure, whether there are issues that point out more specific reasons for the current design.

Here is a topic where @chung-leong found a sneaky way to access the function name: [Is there a way to get the function name from pointer - #3 by chung-leong](https://ziggit.dev/t/is-there-a-way-to-get-the-function-name-from-pointer/3951/3)

---

_[View the full topic](https://ziggit.dev/t/getting-function-name-at-comptime-and-stringify/4459)._
