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

Chris Lattner clattner at apple.com
Tue Jun 21 23:59:32 CDT 2016

> On Jun 21, 2016, at 6:44 AM, Sean Heber via swift-evolution <swift-evolution at swift.org> wrote:
>> In the Commonly Rejected Changes page and in this swift-evolution email to which it refers, I read that first there was “unless", then “require” then finally “guard ... else”.
>> I couldn’t find the earlier discussion in which “unless” was replaced for a while by “require”, so I am moved to ask, “Was there ever “require … else”, or was it just “require”? I’ll assume it was just “require”.
> FYI the decisions and discussions that lead to “guard" occurred within Apple well before Swift was open sourced.

Correct.  There is no publicly released Swift version that used ‘unless’, but you can see it appear in the changelog.


More information about the swift-evolution mailing list