3 ms·
No match is also a match. The problem here is that it's bad design design if a function returns multiple different types of result. Generally there should only
by PurpleRamen 8y ago
No match is also a match.
The problem here is that it's bad design design if a function returns multiple different types of result. Generally there should only be one type of result to make handling reliable. It if's neccessary, you can still test for an empty result, making it the optional case that it is.