# Should anyone be using @\_silgen\_name outside of the standard library developers?

**URL:** <https://forums.swift.org/t/should-anyone-be-using-silgen-name-outside-of-the-standard-library-developers/19396>\
**Category:** Using Swift\
**Tags:** c-interop\
**Created:** [January 10, 2019, 7:53pm UTC](https://forums.swift.org/t/should-anyone-be-using-silgen-name-outside-of-the-standard-library-developers/19396 "2019-01-10T19:53:16Z")\
**Posts on this page:** 1\
**Showing post:** 23

<div class="post-metadata">

**Author:** ![Joe\_Groff](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/joe_groff/32/1929_2.png) [@Joe\_Groff](https://forums.swift.org/u/Joe_Groff)\
**Post date:** [August 13, 2021, 9:02pm UTC](https://forums.swift.org/t/should-anyone-be-using-silgen-name-outside-of-the-standard-library-developers/19396/23 "2021-08-13T21:02:23Z")

</div>

> [@EricRabil](#):
>
> I also understand that this is a pretty unsafe language feature – but I don't think that's reason enough to leave us in a state where this currently-working solution could be broken without warning or replacement that doesn't involve bridging headers.

`@_silgen_name` is fundamentally broken for the purpose. It's unfortunate that it pretends to work in so many cases, and that it's so easy to reach for if you know it exists, but please don't. It will break. All of those places you raised in the Swift repo are misusing it too and need to be fixed. I can sympathize with the desire for an easy way to declare an external C function, but **`@_silgen_name` is not it, and will never be it**. I would not object to someone implementing something like maybe allowing `@_cdecl` to declare a function without a body and proposing that as a feature.

---

_[View the full topic](https://forums.swift.org/t/should-anyone-be-using-silgen-name-outside-of-the-standard-library-developers/19396)._
