before I go writing our own version of MapAccessor...
# announcements
j
before I go writing our own version of MapAccessors.kt, is there a way to achieve something like the following out of the box?
Copy code
class User(val map: Map<String, Any?>) {
    @DelegateKey("name")
    val fullName: String by map

    val age: Int         by map
}

fun main(args: Array<String>) {
    val user = User(mapOf(
            "name" to "John Doe",
            "age"  to 25
    ))

    println("name = ${user.fullName}, age = ${user.age}")
}