-
Notifications
You must be signed in to change notification settings - Fork 433
A more detailed intro in the README. #148
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
Conversation
README.md
Outdated
| ### Core Reactive Primitives | ||
| | Primitive | Description | | ||
| | --------- | ------------| | ||
| | `Signal` | `Signal` is a unilateral stream of events.<br /><br />It is like a live TV feed - you can observe and react to the content, but you cannot have a side effect on the live feed. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think unilateral is the right word here. Unidirectional, maybe?
The - should should be replaced by — here and below.
README.md
Outdated
| * Control actions and responder chain events | ||
| * [Futures and promises](https://en.wikipedia.org/wiki/Futures_and_promises) | ||
| * [Key-value observing](https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/KeyValueObserving/KeyValueObserving.html) (KVO) | ||
| These primitives can be used to uniformly represent common Cocoa and generic programming patterns that are fundamentally an act of observation, e.g. delegate pattern, callback closures, notifications, control actions, responder chain events, [futures, promises](https://en.wikipedia.org/wiki/Futures_and_promises) and [key-value observing](https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/KeyValueObserving/KeyValueObserving.html) (KVO). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think "futures/promises" would read better than "futures, promises"
README.md
Outdated
| It is like a frame in a one-time live feed — seas of data frames carry the visual and audio data, but the feed would eventually be terminated with a special frame to indicate "end of stream". | ||
|
|
||
| #### `SignalProducer`: deferred work that creates a stream of value. | ||
| `SignalProducer` defers work — of which the output is represented as a stream of value — until it is started. For every invocation to start the `SignalProducer`, a new `Signal` is created and the deferred work is subsequently invoked. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stream of value s
README.md
Outdated
|
|
||
| ```swift | ||
| let channel: Signal<Programme, NoError> = tvStation.channelOne | ||
| channel.observeValues { programme in ... } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RAC uses US English, so this should be program.
README.md
Outdated
|
|
||
| #### `SignalProducer`: deferred work that creates a stream of value. | ||
| #### `SignalProducer`: deferred work that creates a stream of values. | ||
| `SignalProducer` defers work — of which the output is represented as a stream of value — until it is started. For every invocation to start the `SignalProducer`, a new `Signal` is created and the deferred work is subsequently invoked. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stream of value is repeated in the body text too. 🙈
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Caught another 🙈
It adds a table of "core reactive primitives" with a very brief description plus a metaphor.