[swift-evolution] [Review] SE-0030 Property Behaviors
tseitz42 at icloud.com
Thu Feb 18 23:56:22 CST 2016
> Am 19.02.2016 um 06:01 schrieb Curt Clifton via swift-evolution <swift-evolution at swift.org>:
>> In discussion with the core team, we've also strongly come in favor of applying behaviors to properties using attribute syntax, e.g.:
>> @lazy var x = 111
>> @delayed var x: Int
>> They're definitely attribute-like, and we think it makes sense for behaviors to be the first of hopefully many kinds of user-defined behaviors. What do you all think of this direction?
> I think this is an excellent direction. Would we also use @ syntax for accessing property-supplied members, like `a at runcible.x`?
I would like that.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution