Everyone uses the pattern for throwing errors that they copied from somewhere else, Sarunw shows some different ways.
I especially like the “where” clause.
https://sarunw.com/posts/different-ways-to-catch-throwing-errors-in-swift/
No comments:
Post a Comment