Which programming language is this?
val user = User("ana").apply {
email = "ana@example.com"
age = 30
}
println(user.email ?: "no email")
Answer: Kotlin
The
Play Programming Languages ▸
.apply { } scope function and the ?: Elvis operator with println are Kotlin idioms.