https://kotlinlang.org logo
#library-development
Title
# library-development
m

mbonnin

12/17/2021, 3:58 PM
Are there any plans to add source compatibility checks to https://github.com/Kotlin/binary-compatibility-validator ? As of now it's super easy to change a parameter name and not notice it until calling code breaks
8
Also not sure what that would require? JVM binary compatibility is a problem that has been studied for a long time but Kotlin source compatibility might be something completely different?
e

elizarov

12/18/2021, 8:31 AM
The rule of thumb is that any change you do to your public API breaks some source of a client. Write more tests for use-cases that you care about.
m

mbonnin

12/18/2021, 11:53 AM
Is there a particular reason there can't be something like japicmp but that can read metadata to do more checks for kotlin? The parameter name change problem looks relatively solvable?
e

elizarov

12/18/2021, 12:03 PM
You can. Parameter names are available in Kotlin metadata. It is just source compatibility is a much more complex topic than binary compatibility.
👍 1