Open kaqu opened 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.
This should wait for Swift 5 to allow usage Error as generic error - it needs Error to conform to itself.
One of possible approaches: https://gist.github.com/kaqu/bedc29507d05f404936427d7366d8ac5
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.