Although I use trailing closures a lot less now, I think I’m a +1 anyway for
consistency’s sake.
I actually really like the idea of having trailing keywords in loops and if
statements, these needn’t be required (except where a trailing closure is used)
but for example it means I could do a fully natural language loop like:
for eachValue in theValues do { … }
Which is very, very clear on what’s happening there and I like the consistency
of every block having a kind of type (do, else, defer, catch etc.). That said
it’s probably grounds for a separate, supplementary proposal once guard has
this capability? Of course if it can be done at the same time that’d be great
too, as the implementation of this proposal should assume that if/while will
gain the same ability at some point once we decide how to do it.
> On 3 Apr 2016, at 13:44, Howard Lovatt via swift-evolution
> <[email protected]> wrote:
>
> Interesting idea to put keywords in the other statements so that they can
> also use trailing closures!
>
> On Sunday, 3 April 2016, Ilya Belenkiy via swift-evolution
> <[email protected] <mailto:[email protected]>> wrote:
>> What is your evaluation of the proposal?
> +1. I stumble on this quite often.
>
>> Is the problem being addressed significant enough to warrant a change to
>> Swift?
> yes
>
>> Does this proposal fit well with the feel and direction of Swift?
> yes
>
>> How much effort did you put into your review? A glance, a quick reading, or
>> an in-depth study?
> quick reading
>
>
>> On Mar 31, 2016, at 11:27 PM, Douglas Gregor via swift-evolution
>> <[email protected]
>> <javascript:_e(%7B%7D,'cvml','[email protected]');>> wrote:
>>
>> Hello Swift community,
>>
>> The review of SE-0056 "Allow trailing closures in `guard` conditions" begins
>> now and runs through April 5, 2016. The proposal is available here:
>>
>> https://github.com/apple/swift-evolution/blob/master/proposals/0056-trailing-closures-in-guard.md
>>
>> <https://github.com/apple/swift-evolution/blob/master/proposals/0056-trailing-closures-in-guard.md>
>> Reviews are an important part of the Swift evolution process. All reviews
>> should be sent to the swift-evolution mailing list at
>>
>> https://lists.swift.org/mailman/listinfo/swift-evolution
>> <https://lists.swift.org/mailman/listinfo/swift-evolution>
>> or, if you would like to keep your feedback private, directly to the review
>> manager. When replying, please try to keep the proposal link at the top of
>> the message:
>>
>> Proposal link:
>>
>> https://github.com/apple/swift-evolution/blob/master/proposals/0056-trailing-closures-in-guard.md
>>
>> <https://github.com/apple/swift-evolution/blob/master/proposals/0056-trailing-closures-in-guard.md>
>> Reply text
>>
>> Other replies
>> <https://github.com/apple/swift-evolution#what-goes-into-a-review-1>What
>> goes into a review?
>>
>> The goal of the review process is to improve the proposal under review
>> through constructive criticism and, eventually, determine the direction of
>> Swift. When writing your review, here are some questions you might want to
>> answer in your review:
>>
>> What is your evaluation of the proposal?
>> Is the problem being addressed significant enough to warrant a change to
>> Swift?
>> Does this proposal fit well with the feel and direction of Swift?
>> If you have used other languages or libraries with a similar feature, how do
>> you feel that this proposal compares to those?
>> How much effort did you put into your review? A glance, a quick reading, or
>> an in-depth study?
>> More information about the Swift evolution process is available at
>>
>> https://github.com/apple/swift-evolution/blob/master/process.md
>> <https://github.com/apple/swift-evolution/blob/master/process.md>
>> Thank you,
>>
>> Doug Gregor
>>
>> Review Manager
>>
>> _______________________________________________
>> swift-evolution mailing list
>> [email protected]
>> <javascript:_e(%7B%7D,'cvml','[email protected]');>
>> https://lists.swift.org/mailman/listinfo/swift-evolution
>> <https://lists.swift.org/mailman/listinfo/swift-evolution>
>
>
>
> --
> -- Howard.
> _______________________________________________
> swift-evolution mailing list
> [email protected]
> https://lists.swift.org/mailman/listinfo/swift-evolution
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution