Youssef Shoaib [MOD]
02/13/2025, 7:17 PMbreak
, continue
, explicit return
). Is there a conceivable way that the compiler could avoid such duplication? It results in some issues sometimes when combined with inline
functions (because duplicating a big block is bad for bytecode size)jw
02/13/2025, 7:50 PMfinally
completes.Youssef Shoaib [MOD]
02/13/2025, 8:01 PMResult<Any?>
local variable, but figured that I must be missing something? such a jump-table will be easy to optimize by further tools (like proguard or the JIT itself) no? I can't see why Java doesn't do it this way, but the problem is definitely more pronounced in Kotlin.ephemient
02/14/2025, 1:03 PMjsr
https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-3.html#jvms-3.13ephemient
02/14/2025, 1:04 PMephemient
02/14/2025, 1:06 PM