Interstellar icon indicating copy to clipboard operation
Interstellar copied to clipboard

Swift's 5 Result type

Open anaglik opened this issue 5 years ago • 5 comments

Hi, I'm huge fan of the project. It is really well done and using it is a breeze.

Today, Apple released Xcode 10.2 with Swift 5 and now we have Result type built into the language. How do you think it influences the project? Should it replace Interstellar's Result type or would you like to keep them both by conforming to ResultType protocol?

anaglik avatar Mar 25 '19 20:03 anaglik

I already created a pr for it at #74 it needs a bit more work though

JensRavens avatar Apr 23 '19 15:04 JensRavens

@JensRavens Will you be working on it later ?

anaglik avatar Aug 19 '19 13:08 anaglik

My current state is more or less that this will probably never be merged. For swift 5 there's the way better alternative of just using the new native producers - they're more performant and more flexible. If you need this though, feel free to take over and do a PR.

JensRavens avatar Aug 20 '19 16:08 JensRavens

Hello @JensRavens I'm interested by this but I don't know what the "new native producers" you're referring to are. Could you tell me what they are, and how they make it unnecessary to use the built in Result type in Interstellar? Thank you

teogeos avatar Mar 14 '20 16:03 teogeos

Swift 5 has the combine framework which can do anything Interstellar can do. So it’s not a replacement for result but for the whole framework.

JensRavens avatar Mar 14 '20 17:03 JensRavens