[swift-evolution] [Review] SE-0030 Property Behaviors

Thorsten Seitz 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.

-Thorsten 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160219/49aec38b/attachment.html>


More information about the swift-evolution mailing list