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

Joe Groff jgroff at apple.com
Thu Feb 11 13:49:57 CST 2016

> On Feb 11, 2016, at 11:26 AM, Jonathan Tang via swift-evolution <swift-evolution at swift.org> wrote:
> How about contractions of the proposal then? :-)
> The only part of the existing proposal that my brainstorm last night actually changed (as opposed to extended) was the need for behavior-added methods on properties and a syntax for calling them (the foo.[lazy].clear() case).  This also seems to be one of the more contentious parts in the discussion here, and appears to be non-critical in the use-cases listed in the proposal.  So +1 to the proposal itself, -1 to the ability to add methods to properties and call them, with the latter perhaps separated out into a future extension.  +1 for keeping the underbar in the behavior definition syntax, or even explicitly binding it to a string literal; it seems quite likely this will be useful.

Sure, that's definitely a suite of functionality that could be factored into its own discussion.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160211/df865853/attachment.html>

More information about the swift-evolution mailing list