[swift-evolution] [Review] SE-0030 Property Behaviors
Chris Lattner
clattner at apple.com
Thu Feb 11 15:11:42 CST 2016
> On Feb 11, 2016, at 1:10 PM, Joe Groff <jgroff at apple.com> wrote:
>
>
>> On Feb 11, 2016, at 12:53 PM, Chris Lattner <clattner at apple.com <mailto:clattner at apple.com>> wrote:
>>
>> I’m very curious where you stand on the syntax of the behavior decl, because this decl (as one concrete example) seems like it would be *much* nicer as:
>>
>> public var behavior changeObserved<Value : Equatable> {
>
> I'd prefer not to take it as a keyword. I think we can parse it contextually between 'var' and another identifier, even though we don't do that anywhere else yet.
Ok.
> If we really want to keep the initial proposal modest, we could subset out the declaration syntax bikeshedding and start with the lazy implementer's approach, exposing the unpainted protocol underlying the behavior:
I’d prefer not to do that :-)
-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160211/b03c1e78/attachment.html>
More information about the swift-evolution
mailing list