[swift-evolution] [Review] SE-0066: Standardize function type argument syntax to require parentheses

Joe Groff jgroff at apple.com
Tue Apr 26 17:28:32 CDT 2016


> On Apr 26, 2016, at 3:07 PM, Michael Peternell via swift-evolution <swift-evolution at swift.org> wrote:
> 
> I can't see that it would create any ambiguities to not use parens.

() is also used in type syntax for tuples, so without this requirement, (Int, Int) -> T is ambiguous between having two Int arguments or having one tuple argument.

-Joe


More information about the swift-evolution mailing list