Cies
10/07/2024, 3:25 PMBen Woodworth
10/07/2024, 4:25 PMRuckus
10/07/2024, 5:45 PM// nonnull
var a: String = ...
a.length // okay
a?.length // complains that ? is not needed
// nullable
var b: String? = ...
b.length // error
b?.length // okay
// platform
var c: String! = ...
c.length // okay
c?.length // okay
Cies
10/07/2024, 6:18 PMCies
10/07/2024, 6:20 PMCies
10/07/2024, 6:22 PMBen Woodworth
10/07/2024, 6:26 PM@Nullable
and @NonNull
annotationsRuckus
10/07/2024, 6:39 PMOptional
or something similar. Should the switch also have an option to treat all platform types as nonnull?
And probably others I can't think of off the top of my head. There's no reason not to ask them, it just might make the scope balloon a bit.Cies
10/07/2024, 6:52 PMRuckus
10/07/2024, 8:55 PMfun
in Kotlin world 🙂).
> I understand this is not done for "an easy onramp" or for "marketing purposes"
No, as @Ben Woodworth explained, it was done due to community feedback, which is generally a pretty good reason. You are also providing community feedback, and I'm sure it will be considered along with all the rest.Cies
10/07/2024, 10:07 PMRuckus
10/08/2024, 2:18 AMhho
10/08/2024, 8:34 AMCies
10/09/2024, 9:36 AM