Dias04/08/2019, 4:00 PM
returns "null" rather than actual null?
Ruckus04/08/2019, 4:10 PM
fun Any?.toString(): String
Dias04/08/2019, 4:13 PM
ghedeon04/08/2019, 4:14 PM
karelpeeters04/08/2019, 4:15 PM
ghedeon04/08/2019, 4:16 PM
, but I guess it's made like this in order to mark it as a special case, idk.
karelpeeters04/08/2019, 4:18 PM
Ruckus04/08/2019, 4:25 PM
, we're talking about the definition. If we're talking about usage, it's fairly clear if I say
. If you understand nullability and safe execution in Kotlin, it seems perfectly clear.
ghedeon04/08/2019, 5:36 PM
is going to return from the first look.
orangy04/08/2019, 5:41 PM
expression in Java 😉
ghedeon04/08/2019, 5:45 PM
mostly in UI layer, because it makes more sense there. Anyhow, thankfully, custom extensions are easy to write.
cbruegg04/08/2019, 6:14 PM
Burkhard04/08/2019, 6:42 PM
as the receiver of extension functions is a different discussion (and something that will probably never change). Anyhow I like it. Functions like
Ruckus04/08/2019, 6:46 PM
As extension methods are supposed to mimic instance methods...That seems a rather unfounded claim. Can you justify it?
cbruegg04/08/2019, 6:47 PM
Ruckus04/08/2019, 6:48 PM
cbruegg04/08/2019, 6:48 PM
Ruckus04/08/2019, 6:52 PM
Burkhard04/08/2019, 6:54 PM
Ruckus04/08/2019, 6:58 PM