3 ms·
But in this case, pattern matching seems way easier to follow and evaluate mentally than the verbose visitor approach already in the language, or something base
by dgellow 7y ago
But in this case, pattern matching seems way easier to follow and evaluate mentally than the verbose visitor approach already in the language, or something based on switches/if statements. That seems to be a good way to reduce the amount of confusing mess, at least for new developments.