What makes it clearer? I think you're just more used to "match", whereas other people are more used to "if".
The structure is almost identical. You even have an "else" clause!
The structure is almost identical. You even have an "else" clause!
I think most function programmers are actually very familiar with the patters found in Java. It's often one of the reasons they fell in love with more functional styles of programming.