[swift-evolution] Allow use of ; in anonymous closures

Braeden Profile jhaezhyr12 at gmail.com
Wed Aug 17 10:38:02 CDT 2016

Okay, I currently love closure syntax, but something doesn’t sit right with me.  Why can’t I write…

[6,5].map { n in; n+1 }

…where there’s a semicolon after the parameter list?  I think it looks better, and should at least be allowed (not required).

More information about the swift-evolution mailing list