> On May 31, 2016, at 2:13 PM, Adrian Zubarev via swift-evolution 
> <[email protected]> wrote:
> 
>> Please remove the section on guard as any of the preceding will never have 
>> single expression top level code blocks if they contain a guard clause.
> 
> I didn’t get this at first but now I see your point, it’s because the whole 
> returning scope will need `return` at the very end so `guard` should follow 
> that rule.
> 
> 

Exactly.  You are allowed to omit `return` if the entire body only consists of 
`return some().expression`

> 
> -- 
> Adrian Zubarev
> Sent with Airmail
> 
> Am 31. Mai 2016 um 21:00:43, Matthew Johnson ([email protected] 
> <mailto:[email protected]>) schrieb:
> 
>> 
> _______________________________________________
> swift-evolution mailing list
> [email protected] <mailto:[email protected]>
> https://lists.swift.org/mailman/listinfo/swift-evolution 
> <https://lists.swift.org/mailman/listinfo/swift-evolution>
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to