在Swift 2中,我们可以很容易地将where添加到guard语句
guard let varA = 1 where varB == 2 else {return}但是在swift 3中删除了where,我怎么能在Swift 3中做到这一点呢?
发布于 2017-02-24 23:06:35
使用,分隔condition并删除where
guard let varA = 1, varB == 2 else {return}https://stackoverflow.com/questions/42441873
复制相似问题