Making a case for Result

Swift introduced the Result type in its 5.0 release (Apple documentation). Using it, we can represent both success and error cases with a single type. It is highly useful with…