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 <[email protected]> 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
>
>


-- 
Sincerely,

Tingan Ho
@tingan87 <https://twitter.com/tingan87>
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to