# \[Pitch\] Opaque parameter types

**URL:** <https://forums.swift.org/t/pitch-opaque-parameter-types/54914>\
**Category:** Pitches\
**Created:** [January 27, 2022, 7:38pm UTC](https://forums.swift.org/t/pitch-opaque-parameter-types/54914 "2022-01-27T19:38:56Z")\
**Posts on this page:** 1\
**Showing post:** 46

<div class="post-metadata">

**Author:** ![ensan-hcl](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/ensan-hcl/32/15186_2.png) [@ensan-hcl](https://forums.swift.org/u/ensan-hcl)\
**Post date:** [February 4, 2022, 11:18pm UTC](https://forums.swift.org/t/pitch-opaque-parameter-types/54914/46 "2022-02-04T23:18:59Z")

</div>

OK, I'm sorry in that `c` is ill-formed. But that's not my point. I'm asking that, why a type which cannot appear in let statements can appear in function parameter position. Other types containing `some` do appear in both parameter position and let statements. The behavior of `(some P) -> ()` is quite strange.

It contains another problem, please read my comment in the proposal review thread 🙇‍♂️ Maybe we should argue in the review thread, in order not to scatter the discussion.

> [@SE-0341: Opaque Parameter Declarations](https://forums.swift.org/t/se-0341-opaque-parameter-declarations/55082/11):
>
> [SE-0328](https://forums.swift.org/t/accepted-with-modifications-se-0328-structural-opaque-result-type/53789) rejected adding `some P` in 'consuming' position of closure, because at that point we were afraid that adding such a closure contradicts with this SE-0341 == 'generalized `some` syntax'. But this SE-0341 introduces the `some P` in 'consuming' position of closure in the parameter position of function. At least, please explain, why? This problem cannot be resolved if you prohibit the use of `(some P) -> ()` in parameter position. The proposed behavior of it is quite natural considering it as a sugar of generics. Prohibiting that introduces a new strange exception into Swift.

---

_[View the full topic](https://forums.swift.org/t/pitch-opaque-parameter-types/54914)._
