When to use Swift Result Type vs Throws (and why it matters)
After explaining error handling using do-try-catch, I thought it would be irresponsible not to share my daily notes on the swift Result type. It’s very simple to return result from a function and handle errors especially if you want to handle both cases, success & failure. Throws is great for immediately stopping execution and jumping […]
