Continuing this discussion.
# serialization
k
Continuing this discussion.
b
actually `karel`implements some external interface with the field called
name
which type is
String
, so:
Copy code
external interface Person {
    val name: String
}
And now you can declare extension function in Kotlin:
Copy code
fun Person.printName() = println(name)