[swift-evolution] Making `.self` After `Type` Optional

Joe Groff jgroff at apple.com
Thu Mar 10 13:50:43 CST 2016


> On Mar 10, 2016, at 11:46 AM, Dave Abrahams <dabrahams at apple.com> wrote:
> 
> 
>> On Mar 10, 2016, at 9:19 AM, Joe Groff <jgroff at apple.com <mailto:jgroff at apple.com>> wrote:
>> 
>> - As the parameter to an operator:
>> 
>> ++Foo<T> // prefix
>> Foo<T>++ // postfix
>> Foo<T>+Bar<U> // infix
>> Foo<T> + Bar<U>
> How is this case different.

>+ might itself be an operator token without the whitespace.

>> let foo = Bar<U>
> 
> Is assignment an operator?

It parses like one.

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


More information about the swift-evolution mailing list