JensRavens / Interstellar

Simple and lightweight Functional Reactive Coding in Swift for the rest of us
MIT License
1.08k stars 156 forks source link

Swift's 5 Result type #73

Open anaglik opened 5 years ago

anaglik commented 5 years ago

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 commented 5 years ago

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

anaglik commented 5 years ago

@JensRavens Will you be working on it later ?

JensRavens commented 5 years ago

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 commented 4 years ago

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 commented 4 years ago

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.