[swift-evolution] Revisiting SE-0110

David Sweeris davesweeris at mac.com
Fri May 26 11:37:29 CDT 2017


> On May 26, 2017, at 08:14, Robert Bennett via swift-evolution <swift-evolution at swift.org> wrote:
> 
> Alternatively, for maximum consistency we could make "{ arg in ..." illegal as well, requiring parentheses around "arg". This would mirror the parentheses necessary in e.g., "let f: (Int) -> Int", and there would be no confusion as to why " { arg in ..." is legal but not "{ (key, value) in ...".

I think I would support that. Until quite recently, I was under the impression that closures' "inner signatures" were part of that proposal, anyway.

(Come to think of it... were they? I suppose it could be a bug that the "old" syntax is still accepted here.)

- Dave Sweeris 


More information about the swift-evolution mailing list