2 ms·
I love to see all these new languages coming in with some form of pattern matching. I know some people don't like it but I also am partial to allowing the omiss
by DangitBobby 4y ago
I love to see all these new languages coming in with some form of pattern matching. I know some people don't like it but I also am partial to allowing the omission of curly braces in loops/conditionals/etc.
That said, the pattern matching syntax is a little strange and stood out to me. Why does [a::b::c] match an array with three elements? Why does (true, false) match an array with two booleans?