# Pitch: Introduce custom attributes

**URL:** <https://forums.swift.org/t/pitch-introduce-custom-attributes/21335>\
**Category:** Pitches\
**Created:** [March 7, 2019, 5:21pm UTC](https://forums.swift.org/t/pitch-introduce-custom-attributes/21335 "2019-03-07T17:21:28Z")\
**Posts on this page:** 1\
**Showing post:** 32

<div class="post-metadata">

**Author:** ![Nevin](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/nevin/32/617_2.png) [@Nevin](https://forums.swift.org/u/Nevin)\
**Post date:** [March 20, 2019, 3:50pm UTC](https://forums.swift.org/t/pitch-introduce-custom-attributes/21335/32 "2019-03-20T15:50:17Z")

</div>

> [@Vinicius\_Vendramini](#):
>
> Attributes that don’t have runtime behavior would still show up in the source code, allowing devs to create tools that interacted with them before they’re compiled (using SourceKit for instance).

Are there existing examples of developers writing tools that interact with _comments_ in source-code? It seems to me that anything one can do with a non-functional custom attribute, one can also do with a custom comment. If this use-case is important and powerful, then I’d like to see what people are already doing with it, since there’s nothing stopping them today.

---

_[View the full topic](https://forums.swift.org/t/pitch-introduce-custom-attributes/21335)._
