miquido / futura

Asynchronous Swift made easy. The project was made by Miquido. https://www.miquido.com/
Apache License 2.0
33 stars 3 forks source link

Refactor to strongly typed Errors #21

Open kaqu opened 5 years ago

kaqu commented 5 years ago

Strongly typed errors allows better control and more static checking on code. It will be nice to have that feature it possible with current model.

kaqu commented 5 years ago

This should wait for Swift 5 to allow usage Error as generic error - it needs Error to conform to itself.

KaQuMiQ commented 5 years ago

One of possible approaches: https://gist.github.com/kaqu/bedc29507d05f404936427d7366d8ac5