What is the purpose of `external` keyword in Kotli

2019-06-15 05:33发布

问题:

What exactly is the purpose of the external keyword in Kotlin?

I guess it's for JNI like native in Java, but I can't seem to find any actual reference or documentation on this.

回答1:

Indeed, it's an equivalent of Java's native. It's currently missing from the documentation but there's an issue to add it.