[swift-evolution] the "guard" keyword, again

James Campbell james at supmenow.com
Tue Jun 21 06:05:05 CDT 2016


I think unless has always made more sense, guard felt like a multithreaded
statement as in guard this variable from other threads.

*___________________________________*

*James⎥Head of Trolls*

*james at supmenow.com <james at supmenow.com>⎥supmenow.com <http://supmenow.com>*

*Sup*

*Runway East *

*10 Finsbury Square*

*London*

* EC2A 1AF *

On 21 June 2016 at 09:14, Rimantas Liubertas via swift-evolution <
swift-evolution at swift.org> wrote:

>
> In summary, “require … else” is a very clean choice and beats “guard ...
>> else” handily.
>>
>
> For you maybe. I prefer quard—it carries slightly different semantic load
> and fits more cases, imho.
>
> r.
>
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160621/bccdb8dc/attachment.html>


More information about the swift-evolution mailing list