O'Reilly logo
  • MICHAEL MASLENKO thinks this is interesting:

Defining extension functions for nullable types is one more powerful way to deal with null values. Rather than ensuring that a variable can’t be null before a method call, you can allow the calls with null as a receiver, and deal with null in the function. This is only possible for extension functions; regular member calls are dispatched through the object instance and therefore ...

From

Cover of Kotlin in Action

Note

5