News for hackers. Stuff that matters.
Re:The power of Result types in Swift by minfduck on Sunday June 17, 2018 @06:47PM (#17334803)
No it doesn't. This article is specifically about how you can use the Swift type system to prevent that from happening. You get a compile time guarantee that the result will either be data or error.
Re:The power of Result types in Swift by m3kw9 on Monday June 18, 2018 @12:34PM (#17339563)
The server can a aboulutly send you data and error as nil, either by error or on purpose. Someone is gonna handle that.