# Implicit guarding self in closures

**URL:** <https://forums.swift.org/t/implicit-guarding-self-in-closures/62386>\
**Category:** Pitches\
**Tags:** capture-list, strongify-weak\
**Created:** [January 4, 2023, 6:17pm UTC](https://forums.swift.org/t/implicit-guarding-self-in-closures/62386 "2023-01-04T18:17:57Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![cal](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/cal/32/35557_2.png) [@cal](https://forums.swift.org/u/cal)\
**Post date:** [January 5, 2023, 2:28pm UTC](https://forums.swift.org/t/implicit-guarding-self-in-closures/62386/14 "2023-01-05T14:28:38Z")

</div>

When I [pitched this](https://forums.swift.org/t/guard-capture-specifier-for-closure-capture-lists/50805) a few years ago, the core team decided not to run a review for it and shared this feedback:

> [@\`guard\` capture specifier for closure capture lists](https://forums.swift.org/t/guard-capture-specifier-for-closure-capture-lists/50805/81):
>
> The core team talked about this, and we're reluctant to add features that introduce new sources of control flow unless they significantly improve expressive power. This proposal is a simple sugaring of a very specific pattern, but it would not work in a lot of superficially similar situations, like when the function needs to return anything other than `Void`. The amount of convenience offered also seems fairly low.
> 
> @cal, thank you for your suggestion, it was certainly worth considering. However, at this time, we don't think this proposal is likely to be accepted, and so it's not worth taking through the Evolution process. We can reconsider this if someone makes a strong argument to do so in the future.

These days, especially after SE-0345 (slightly reducing the verbosity of `guard let self` conditions) and SE-0365 (allowing implicit self for weak self closures), I tend to think that the existing weak guard pattern is brief enough that it doesn't need to be sugared. I don't really think there's a way to further simplify this pattern without obscuring control flow.

---

_[View the full topic](https://forums.swift.org/t/implicit-guarding-self-in-closures/62386)._
