alexsullivan114
01/10/2020, 2:42 PMwasyl
01/10/2020, 3:13 PMalexsullivan114
01/10/2020, 3:18 PMAdam Powell
01/10/2020, 4:44 PMnull
, that's fine too since it's represented in the type system. The ambient is necessarily declared as Ambient<Foo?>
and kotlin's null handling applies for consumers - they have to think about it, can use ?:
and friends, etc.alexsullivan114
01/10/2020, 4:52 PMAdam Powell
01/10/2020, 4:53 PMambientOf(defaultValue)
etc.alexsullivan114
01/10/2020, 4:54 PMAdam Powell
01/10/2020, 4:54 PMAmbient.of(...)
but I think we were unifying to match listOf
and friendsalexsullivan114
01/10/2020, 4:55 PMAdam Powell
01/10/2020, 4:56 PMalexsullivan114
01/10/2020, 5:44 PM