[swift-evolution] [Pitch] Adding a `mutate` clause to computed properties and subscripts

Joe Groff jgroff at apple.com
Tue Oct 11 11:16:02 CDT 2016


> On Oct 11, 2016, at 8:26 AM, Xiaodi Wu via swift-evolution <swift-evolution at swift.org> wrote:
> 
> The following document may inform your discussion here:
> https://github.com/apple/swift/blob/73841a643c087e854a2f62c7e073317bd43af310/docs/proposals/Accessors.rst

Specifically this section, which describes more or less exactly what Tim is proposing  (IIUC):

https://github.com/apple/swift/blob/73841a643c087e854a2f62c7e073317bd43af310/docs/proposals/Accessors.rst#the-beacon-of-hope-for-a-user-friendly-future-inversion-of-control

This is an idea that makes sense to do at some point, definitely.

-Joe


More information about the swift-evolution mailing list