# Receiver Closures

**URL:** <https://forums.swift.org/t/receiver-closures/24020>\
**Category:** Pitches\
**Tags:** closure\
**Created:** [May 1, 2019, 5:22pm UTC](https://forums.swift.org/t/receiver-closures/24020 "2019-05-01T17:22:13Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Alejandro\_Martinez](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/alejandro_martinez/32/821_2.png) [@Alejandro\_Martinez](https://forums.swift.org/u/Alejandro_Martinez)\
**Post date:** [May 1, 2019, 8:51pm UTC](https://forums.swift.org/t/receiver-closures/24020/3 "2019-05-01T20:51:34Z")

</div>

This is one of those features that makes me envious of Kotlin. It's super nice to define nice higher order helpers (check [Kotlin apply, with, let...](https://medium.com/@elye.project/mastering-kotlin-standard-functions-run-with-let-also-and-apply-9cd334b0ef84) and specially to use in DSLs. The typical ["Object().then {}"](https://github.com/devxoul/Then) pattern would be much nicer with this.

There has been some discussion in [another thread](https://forums.swift.org/t/pitch-syntactic-sugar-for-circumventing-closure-capture-lists/23425/61) on improvements over capture lists, this may be something related to it that would be good to think as a whole.

I would be really in favour of this, I'm just not sure at this point what's the best implementation or syntax, but that's why we have smarter people in the forums ^^

---

_[View the full topic](https://forums.swift.org/t/receiver-closures/24020)._
