Existential Operator / Null Propagation Operator

Tingan Ho tingan87 at gmail.com
Wed Aug 19 14:21:01 UTC 2015

Strange why do they need an operator for that? Probably to make it less
error prone with access nil errors. But that could be fixed with static
code analysis.

On Wed, Aug 19, 2015 at 10:09 PM, Kevin Smith <zenparsing at gmail.com> wrote:

> 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


Tingan Ho
@tingan87 <https://twitter.com/tingan87>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150819/d95b52bd/attachment-0001.html>

More information about the es-discuss mailing list