New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor code for Swift 1.2. #26
Conversation
@inamiy First of all, thanks for the lib! I've got an observation, why do you want to rename Signal to Stream ? Signal already implies stream of values, doesn't it? |
@DarthMike Hi, thanks for question 😄 Though
And above all, I like the phrase "Everything is a stream" in The introduction to Reactive Programming you've been missing. |
@inamiy Yes makes sense 👍 Naming is the second hardest problem in programming 😄 |
@DarthMike Good to hear you are on this change 😉 |
… Stream API's terminal operation)
Ready to |
I've seen new release. Will try later today or tomorrow 🚀 Thanks! |
Thanks too! Any feedback is welcome 😊 |
This pull request is a BREAKING CHANGE where not only fixing for Swift 1.2 but also refactoring whole codes as follows:
Signal<T>
toStream<T>
Stream<T>
class for better type-constraints.merge
,mergeAll
,mergeInner
& always use**All
(stream-array) and**Inner
(nested-stream) naming conventionsdistinct()
distinctUntilChanged()
reduce()
interval()
switchLatestInner()
prestart()
(a.k.aRx.replay
)catch()
retry()
repeat()
|>
and stream-producer pipe operator|>>
in replace of dot-method-chaining syntax.~>! ()
to collect synchronously-emitted values (useful just like Java 8 Stream API)