ghedeon
12/18/2018, 5:15 PMwith
then realize that the type is nullable and fallback to ?.apply{}
? Relevant question on SO: https://stackoverflow.com/questions/35723226/how-to-use-kotlins-with-expression-for-nullable-typesgildor
12/18/2018, 5:23 PMwith
, only for nested contexts
I just don’t see good use cases for it except context nesting (but in this case you usually don’t have nullability)ghedeon
12/18/2018, 6:33 PM.run/?.run
seems to be the exact counterpart of with
functionalitygildor
12/19/2018, 12:07 AMgildor
12/19/2018, 12:08 AM