y
01/03/2024, 7:35 PMinline fun <T> doNothing(ignored: T) { /** empty */ }
I think it's reasonable to expect the optimizer to get rid of it.
is it also reasonable to have the same expectations for this somewhat more useful version?
inline fun doNothing(vararg ignored: Any?) { }
Youssef Shoaib [MOD]
01/03/2024, 7:39 PMChris Lee
01/03/2024, 7:40 PMephemient
01/03/2024, 7:41 PMinline fun
, in addition to inlining it at callsites. (for reflection purposes afaik)y
01/03/2024, 7:43 PMephemient
01/03/2024, 7:45 PMdoNothing
function in the bytecode, even though it won't be directly referenced (at least, not from Kotlin code)ephemient
01/03/2024, 7:46 PMy
01/03/2024, 7:50 PMephemient
01/03/2024, 7:50 PMChris Lee
01/03/2024, 7:51 PMephemient
01/03/2024, 7:51 PMy
01/03/2024, 7:56 PMephemient
01/03/2024, 7:57 PMephemient
01/03/2024, 7:59 PMephemient
01/03/2024, 8:00 PM