我有一个情况
let a: Int? = getFromSomewhere() if a ?= nil { return } let b = a!
我不喜欢太多层.但我觉得这不优雅.你有更优雅的方式吗?
swift
swift ×1