Existential Operator / Null Propagation Operator
Kevin Smith
zenparsing at gmail.com
Wed Aug 19 14:09:42 UTC 2015
> In TypeScript `?` means optional. But throw if the value is nil is the
> same same as non-nullable?
>
In Swift, the postfix "!" operator unwraps an optional value, throwing if
nil.
See
https://developer.apple.com/library/ios/documentation/Swift/Conceptual/Swift_Programming_Language/OptionalChaining.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150819/c6ebed63/attachment.html>
More information about the es-discuss
mailing list