2 ms·
I have read that is doesn't change a thing. Maybe it's even more concise. From what I have read, there is a general mechanism for pattern matching: let the cu
by loup-vaillant 13y ago
I have read that is doesn't change a thing. Maybe it's even more concise.
From what I have read, there is a general mechanism for pattern matching: let the custom data structure implement a "pattern match" method or something, which is then implicitly called with the pattern matching syntax. The explicit box type would be no different.
My guess is, parse-trees would be just as easy to match.