swift if case and optional binding

后端 未结 0 1565
独厮守ぢ
独厮守ぢ 2020-12-22 13:55

what is the difference between the three code blocks below?

  1. optional binding
let someInt: Int? = 42
if let x = someInt {
  print(x)
}


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题