I didn’t take away from the quote that Kotlin generated better byte code. If the measure of a language is its raw ability closer to the metal we should all be coding assembler. I don’t think as, Marko Mitic expressed, that optimal Kotlin would generate better byte code than optimal Java. The point was that decent idiomatic Kotlin, leads to a holistically better application than similar quality Java. It’s a holistic improvement. The code will be cleaner, more legible, more DRY, more maintainable and the resultant app is likely faster and more efficient overall, even if the line by line conversion isn’t as good. Have you ever done proper tail recursion in Java? I’m not sure I have. Without going deep into the byte code I just wouldn’t know. I have in Kotlin. It was simple and straight forward.
