Y
Hacker News
new
|
ask
|
show
|
jobs
by
k_
2985 days ago
Why not? In Haxe (a statically typed language which compiles to js, amongst other targets) pattern matching happens in a switch:
https://haxe.org/manual/lf-pattern-matching-structure.html