[swift-evolution] Spread Operator as Shorthand for Map

Brent Royal-Gordon brent at architechies.com
Wed Dec 16 23:20:50 CST 2015


> My general stance remains that, while an interesting idea, adding a second behavior around dot abbreviation causes more confusion than it's worth (especially given that the behavior is not well understood—this thread being an example), and that {$0.whatever} is not a big burden over (.whatever).

Who says it’s a different behavior? If `var foo: Bar` implies `static func foo(self: Self) -> Bar`, then this falls out of that behavior.

As for conflicts, the same issue exists with the unbound methods declared on a type, and in practice it doesn’t cause any problems.

-- 
Brent Royal-Gordon
Architechies



More information about the swift-evolution mailing list