Existential Operator / Null Propagation Operator

Tingan Ho tingan87 at gmail.com
Wed Aug 19 14:00:27 UTC 2015


In TypeScript `?` means optional. But throw if the value is nil is the same
same as non-nullable?

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

> What about `a!?.b` since semantically the symbol `!` has a meaning of
>> non-nullable in JSDoc[1].
>>
>
> "!" in this context typically means non-optional, or "throw if the value
> is nill".  See Swift for example.
>
> Or just `a!.b`?
>>
>
> Same thing.
>
> Kevin
>



-- 
Sincerely,

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


More information about the es-discuss mailing list