Are there any languages that have both pattern matching and statement oriented syntax?
In principle these are orthogonal, but I'm struggling to think of a language with pattern matching that isn't expression oriented.
miniblog.
Related Posts
When talking about a match or a switch statement, I've typically seen people talk about individual 'cases' or 'arms'.
TIL Zig uses 'prongs' instead!
Are there any advantages to having a statement/expression separate in a new programming language?
I understand that it makes sense for existing languages, but "everything is an expression" seems to be increasingly popular.
I'm dogfooding difftastic and I'm always pleasantly surprised when it works.
Here's a nice example from optimisation today: I've removed an outer if statement. Note that it's lined up line 47 on the left with line 41 on the right, even though they have different indentation.
