# Pitch: non-static & non-generic attributes for protocols

**URL:** <https://forums.swift.org/t/pitch-non-static-non-generic-attributes-for-protocols/47280>\
**Category:** Pitches\
**Tags:** protocols\
**Created:** [April 9, 2021, 3:09pm UTC](https://forums.swift.org/t/pitch-non-static-non-generic-attributes-for-protocols/47280 "2021-04-09T15:09:13Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![xwu](https://avatars.discourse-cdn.com/v4/letter/x/b487fb/32.png) [@xwu](https://forums.swift.org/u/xwu)\
**Post date:** [April 9, 2021, 3:59pm UTC](https://forums.swift.org/t/pitch-non-static-non-generic-attributes-for-protocols/47280/2 "2021-04-09T15:59:24Z")

</div>

> [@1oo7](#):
>
> Note: if anyone has already suggested this within the last 2 years, I couldn't find it. If it was suggested before then, and I somehow missed it, please reply with a link, and accept my apologies in advance.

Self-conformance of protocols has been suggested actually many times. For example, @Jumhyn explicitly referenced your other thread in launching a discussion:

> [@Allowing self-conformance for protocols](https://forums.swift.org/t/allowing-self-conformance-for-protocols/39841):
>
> Since the topic of self-conforming protocols has been brought up a [couple](https://forums.swift.org/t/very-confused-about-some-compiler-warnings-related-to-protocols-bugs-or-intended/39754) [times](https://forums.swift.org/t/introduce-any-p-as-a-better-way-of-writing-existentials/39823/17) this week, I thought it would be good to start a separate discussion to determine whether this problem is worth addressing directly. The main motivation, to borrow some examples from @bjhomer, is to allow the following to compile: protocol Animal {} struct Cat: Animal {} struct Dog: Animal {} // A variable of type 'Animal' is an existential; it can hold \*any\* Animal var anyAnimal: Animal anyAnimal = Cat() anyAnimal…

---

_[View the full topic](https://forums.swift.org/t/pitch-non-static-non-generic-attributes-for-protocols/47280)._
