[swift-evolution] [pitch] Eliminate the "T1 -> T2" syntax, require "(T1) -> T2"

Erica Sadun erica at ericasadun.com
Wed Apr 20 09:40:30 CDT 2016


> On Apr 20, 2016, at 5:09 AM, Jeremy Pereira <jeremy.j.pereira at googlemail.com> wrote:
> 
> 
>> On 19 Apr 2016, at 17:24, Erica Sadun via swift-evolution <swift-evolution at swift.org> wrote:
>> 
>>> 
>> Short of a complete rethink of closure syntax, requiring parentheses there would not improve the language in any measurable way.
> 
> Does requiring the parentheses in (T1) -> T2 improve the language in any measurable way?

I believe it does, as the parens are already required at call sites and in function declarations, and when using functions with more than one argument.

-- E



More information about the swift-evolution mailing list