Swift Error Handling Go Way
Furkan Yilmaz
183

The Go way, is the old Objective-C way of handling errors.

`NSError` is a “value type” that gets returned in many of the framework. It works.

There is no right and wrong. But personally, I quickly get the hang of using `ErrorType` and try-catch. `enum` is great, and you can pass in custom data type to different error cases.

It is obvious you are handling error with try-catch block (your example using guard should not even be a way to “handle” error).