[swift-evolution] RFC: didset and willset

Matthew Johnson matthew at anandabits.com
Wed May 18 16:01:06 CDT 2016


> On May 18, 2016, at 3:53 PM, Brent Royal-Gordon via swift-evolution <swift-evolution at swift.org> wrote:
> 
>> didSet and willSet remain outliers in the general rule of conjoined lowercase keywords. Is there any support for bringing these outliers into the fold?
> 
> I don't think we shouldn't touch these until we know what accessors on property behaviors are going to look like. We could very well change these now and then change them back in the next version; that kind of bouncing back and forth is maddening for users. Better leave them alone for now and change them later if we decide to, than change them in Swift 3 and then have a high probability of changing them back in Swift 4.

I generally agree, but is that an option?  Changing `didSet` to `didset` is a breaking change.  Or are you arguing that this is a special case as it is already going to change when property behaviors are introduced?

I wish we had a clearer sense of how breaking changes will be evaluated in future versions of Swift.

> 
> -- 
> Brent Royal-Gordon
> Architechies
> 
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution



More information about the swift-evolution mailing list