ApiExample().exampleRequest(machine: machine) { response, exception in
return KotlinUnit()
}
When one wants to distribute a library to 3rd party devs requiring the dev to return a KotlinUnit on every callback has a bad smell attached to it.
Is there any plans to change this behaviour?
See also the following discussion:
https://github.com/JetBrains/kotlin-native/issues/1271
Kotlin and Swift are different languages. It is the fundamental reason for cases like this, when idiomatic Kotlin API translated to not-so-idiomatic Swift API.