[swift-evolution] [Proposal Update 1] A simplified notation for avoiding the weak/strong dance with closure capture lists

Brent Royal-Gordon brent at architechies.com
Fri Feb 12 16:46:11 CST 2016


> Alternatives Considered
> 
> Status Quo
> 
> Closures with an Optional Return Type
> 
> Closures with a Bool Return Type
> 
> Closures with Arbitrary Return Types

I would also discuss the alternative of allowing `self` to be shadowed so that you could write `guard let self = self else { return }`. Your proposal still has some advantages over that one, but I would like to see those explicitly called out and discussed.

-- 
Brent Royal-Gordon
Architechies



More information about the swift-evolution mailing list