[swift-evolution] RFC: didset and willset

Ricardo Parada rparada at mac.com
Fri May 20 20:03:48 CDT 2016


If accessors are defined by the developer who designs a property behavior then I do not see them as keywords. Or am I wrong?

That is why I would prefer them lowerCamelCase. 


On May 20, 2016, at 1:50 PM, Chris Lattner via swift-evolution <swift-evolution at swift.org> wrote:

>> Thus, `willSet` and `didSet` should be capitalized like other, user-defined, accessors.
> 
> I agree with your believe that we should treat these just like user-defined accessors.  So lets assume we had an “observed” behavior that had didset/willset aspects that can be specified.  To the implementor of the behavior, these are terms that they define, but to users of the behavior, they are indistinguishable from keywords.


More information about the swift-evolution mailing list