[swift-evolution] [Pitch] Make `return` optional in computed properties for a single case

Adrian Zubarev adrian.zubarev at devandartist.com
Tue May 31 14:13:21 CDT 2016

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.

Adrian Zubarev
Sent with Airmail

Am 31. Mai 2016 um 21:00:43, Matthew Johnson (matthew at anandabits.com) schrieb:

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160531/dd77a615/attachment.html>

More information about the swift-evolution mailing list