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

Which programming language is this?

func bump(_ n: inout Int, by step: Int = 1) {
    n += step
}

var score = 10
bump(&score, by: 5)

Answer: Swift

It resembles Kotlin, but func, the inout parameter, the _ external label and passing &score are Swift-only.
Play Programming Languages ▸