Ah, that's good. There was a talk at KotlinConf 20...
# coroutines
m
Ah, that's good. There was a talk at KotlinConf 2017 that said it boxed; I'm glad that's not true.
r
Kotlin will box basically anywhere Java will box, basically anywhere you use generics, nullable values, or objects (e.g. returning an
Int
from a function that returns
Any
will box it)
m
Cool, thanks for clarifying.
👍 1
r
It is actually a bit smarter than that though. For example, if you have an inlined higher order function (which use generics), it will use the primitive type instead.