[swift-evolution] [Discussion] Allow injection of `didSet` and `willSet`

Chris Lattner clattner at apple.com
Mon Jul 11 17:53:50 CDT 2016


> On Jul 8, 2016, at 4:43 AM, Tino Heth via swift-evolution <swift-evolution at swift.org> wrote:
> 
> There are (were?) plans for generalized property behaviors; those would be used to implement lazy, as well as didSet/willSet, and could incorporate many other things (including injection)

Indeed, the latest draft is here:
https://github.com/apple/swift-evolution/blob/master/proposals/0030-property-behavior-decls.md

This will surely come back sometime after Swift 3.0.

-Chris



More information about the swift-evolution mailing list