阅读背景:

Swift,可选包装器。 “?”“!”我明白它是如何工作的。但为什么它比!= nil check更好

来源:互联网 

I understand how "!" or "?" works. But i'm not quite sure what the added benefit is compared to != nil checking. What is the added benefit of moving to "!?"? I feel like it's just something Apple has added but can't really see the extra benefit compared to status quo of iOS. Am i missing something here? Thanks in advance.I understand how "!" or "?" works. But i'm not




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: