Which programming language is this?
switch v := x.(type) {
case int:
fmt.Println(v)
}
Answer: Go
A type switch using x.(type) is a Go-specific construct.
Play Programming Languages ▸
switch v := x.(type) {
case int:
fmt.Println(v)
}
Answer: Go