3 ms·
> touching any native API interfaces naturally leaves you with a bunch of nullable types where you may well know the value will never be null If a native API r
by modeless 11y ago
> touching any native API interfaces naturally leaves you with a bunch of nullable types where you may well know the value will never be null
If a native API really never returns null it can be declared as such in Closure's externs (equivalent of a header file). If it can return null then doing a routine null check will automatically add the non-nullable attribute when the check succeeds, no cast required.