I knew about Swift new Result type keyword, but did not understand it until reading Paul's posting.
Yes, you could wrap a tuple around any number of optionals, but Result has some cool features that makes it easier (and consistent).
https://www.hackingwithswift.com/articles/161/how-to-use-result-in-swift
Another article on topic: https://medium.com/swlh/result-type-in-swift-1b4e2a84f2c2
No comments:
Post a Comment