Skip to content
This repository has been archived by the owner on Mar 16, 2020. It is now read-only.

Swift's 5 Result type #73

Open
anaglik opened this issue Mar 25, 2019 · 5 comments
Open

Swift's 5 Result type #73

anaglik opened this issue Mar 25, 2019 · 5 comments

Comments

@anaglik
Copy link
Contributor

anaglik commented Mar 25, 2019

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?

@JensRavens
Copy link
Owner

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

@anaglik
Copy link
Contributor Author

anaglik commented Aug 19, 2019

@JensRavens Will you be working on it later ?

@JensRavens
Copy link
Owner

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.

@teogeos
Copy link

teogeos commented Mar 14, 2020

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

@JensRavens
Copy link
Owner

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants