[swift-evolution] [Review] SE-0030 Property Behaviors
Joe Groff
jgroff at apple.com
Fri Feb 19 12:22:55 CST 2016
> On Feb 18, 2016, at 6:56 PM, Joe Groff via swift-evolution <swift-evolution at swift.org> wrote:
>
> Based on review feedback, I've revised the declaration syntax proposal for property behaviors to be more in line with our other declaration forms, reverting to the earlier pre-review "var behavior" proposal. I've updated the proposal in swift-evolution:
>
> https://github.com/apple/swift-evolution/blob/master/proposals/0030-property-behavior-decls.md <https://github.com/apple/swift-evolution/blob/master/proposals/0030-property-behavior-decls.md>
>
> 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
Sorry, that should have read, "hopefully many kinds of user-defined *attributes*".
-Joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160219/31e437b6/attachment.html>
More information about the swift-evolution
mailing list