Generating Kotlin code with KotinPoet
[]
Jake Wharton
Java code generation has become a popular solution to simplifying library code. Despite Kotlin’s strong interop with Java, the generated Java code for these libraries can feel foreign and convention-violating as they’re targeted at Java consumers and lack Kotlin features. Square’s history of code generation started with JavaWriter–a linear code generator that required emitting from top to bottom.