[swift-evolution] [Review] SE-0066: Standardize function type argument syntax to require parentheses
David Owens II
david at owensd.io
Tue Apr 26 17:06:55 CDT 2016
> On Apr 26, 2016, at 1:31 PM, Chris Lattner <clattner at apple.com> wrote:
>
>
>> On Apr 25, 2016, at 11:28 PM, David Owens II via swift-evolution <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
>>
>> What is your evaluation of the proposal?
>> I reluctantly agree with the proposal with the following caveat: I do not agree with the rationale to support being able to choose to omit the () for the parameter list of the closure declaration.
>>
>> I see no cohesive argument that says that the parens should be required in some cases but not in others when talking about parameter lists.
>>
>> I believe the proposal should be amended that the following should be the only allowable forms:
>
> Hi David,
>
> To be clear, this proposal is not about changing closure expressions, it was just a FAQ, and the section at the end is simply my personal opinion. Changing closure expression syntax would be a separate proposal.
My argument is changing the parameter list in one context but not the other is only solving one of the potentially ambiguous use cases instead of the general case. My opinion is they should be changed as the same time if they are going to be changed at all.
-David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160426/1ff1d91b/attachment.html>
More information about the swift-evolution
mailing list