Edoardo Luppi
09/17/2026, 4:18 PMbroadway_lamb
09/17/2026, 4:21 PM[] translating to an inline function call.
Generally, each new level of inlining causes the creation of a temporary variable. This is done for better stepping experience when debugging.
Bu here we indeed could treat an inline function transparently.Edoardo Luppi
09/17/2026, 4:22 PMbroadway_lamb
09/17/2026, 4:22 PMEdoardo Luppi
09/17/2026, 4:22 PMEdoardo Luppi
09/17/2026, 4:24 PMWhy not instead mapIs going down the wrong path. Understood.directly to[]?emptyList()
broadway_lamb
09/17/2026, 4:25 PMof() method (which the empty collection literal is translated into) with something like @InlineOnly for it to be transparent wrt debug info. It should work this way in Kotlin/JVM, I'm not sure about Kotlin/JS though.Edoardo Luppi
09/17/2026, 4:37 PMempty* functions directly. It probably communicates the intent in a clearer way too.