# \[Pitch 2\] Light-weight same-type requirement syntax

**URL:** <https://forums.swift.org/t/pitch-2-light-weight-same-type-requirement-syntax/55081>\
**Category:** Pitches\
**Created:** [February 3, 2022, 5:20pm UTC](https://forums.swift.org/t/pitch-2-light-weight-same-type-requirement-syntax/55081 "2022-02-03T17:20:44Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Slava\_Pestov](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/slava_pestov/32/30204_2.png) [@Slava\_Pestov](https://forums.swift.org/u/Slava_Pestov)\
**Post date:** [February 3, 2022, 5:20pm UTC](https://forums.swift.org/t/pitch-2-light-weight-same-type-requirement-syntax/55081/1 "2022-02-03T17:20:44Z")

</div>

Hi all,

Here is the proposal allowing you to write `Collection<String>` and similar anywhere that a protocol conformance requirement can be written: [https://github.com/apple/swift-evolution/pull/1538](https://github.com/apple/swift-evolution/pull/1538)

This is based on the earlier pitch by @xedin and @hborla: [[Pitch] Light-weight same-type constraint syntax](https://forums.swift.org/t/pitch-light-weight-same-type-constraint-syntax/52889).

The proposal isn't quite ready for review because the implementation is incomplete; the type representation syntax works, but the declaration side uses the `@_primaryAssociatedType` attribute and not the proposed generic parameter list syntax. It goes without saying that this is all behind a feature flag; use `-Xfrontend -enable-parametrized-protocol-types` if you want to experiment with it. I hope to have the new declaration-side syntax implemented in the coming days so that we can begin the formal review.

I have removed the material from the old pitch about the sugared syntax for extensions of concrete types, like `extension Array<String>`. We feel this is better pitched in a separate proposal.

---

_[View the full topic](https://forums.swift.org/t/pitch-2-light-weight-same-type-requirement-syntax/55081)._
