$ ./guess_the_languageProgramming Languages
Programming Languages · hard · #509

Which programming language is this?

val label = when (value) {
    is Int -> "number"
    else -> "other"
}

Answer: Kotlin

when used as an expression with is smart casts is Kotlin's pattern branch.
Play Programming Languages ▸