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

Dave Abrahams dabrahams at apple.com
Thu Mar 10 17:26:15 CST 2016


> On Mar 10, 2016, at 11:50 AM, Joe Groff <jgroff at apple.com> wrote:
> 
>> 
>> On Mar 10, 2016, at 11:46 AM, Dave Abrahams <dabrahams at apple.com <mailto: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.

Ah, thanks.

>>> let foo = Bar<U>
>> 
>> Is assignment an operator?
> 
> It parses like one.

Okay, well I’d make an exception for assignment, but reasonable people can disagree.

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


More information about the swift-evolution mailing list