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

Swift Playground #2795

Merged
merged 4 commits into from May 2, 2016

Conversation

Projects
None yet
2 participants
@RuiAAPeres
Copy link
Member

RuiAAPeres commented Apr 13, 2016

What's in this Pull Request

The goal of this PR is to make it as simple as possible for new comers to experiment with ReactiveCocoa. In it, they will find multiple examples of how different pieces work (Signal, SignalProducer, Observer, Scheduler) and of course the operators (map, filter, et all). Of course this can also be quite valuable for a quick brainstorm or testing new operators, for more advanced users.

I think this is quite important to experiment in a highly interactive place like a playground, to start to have a feeling about a signal's behaviour in the ReactiveCocoa's context.

Tasks

  • SignalProducer
  • Signal
  • Schedulers
  • Properties

I am quite happy with more ideas for what to include in it. I will also have a look at what they did on the RxSwift playground.

Finally, this ties to #2129.

Rui Peres
scopedExample("`empty`") {

let emptyProducer = SignalProducer<Int, NoError>.empty
let observer = Observer<Int, NoError>(failed: { _ in print("error not called") }, completed: { print("completed called")}, next: { _ in print("next not called")})

This comment has been minimized.

@mdiep

mdiep Apr 15, 2016

Contributor

These might benefit from formatting each block on a separate line.

@mdiep

This comment has been minimized.

Copy link
Contributor

mdiep commented Apr 15, 2016

I like it. 👍 Do you intend to tackle the "Next Steps" here or in a separate PR?

@RuiAAPeres

This comment has been minimized.

Copy link
Member Author

RuiAAPeres commented Apr 15, 2016

@mdiep here. I just wanted to push the work I had done! I will squash it, when it's time to merge.

@RuiAAPeres RuiAAPeres force-pushed the RuiAAPeres:swift-playground branch 2 times, most recently from 85b4204 to f6f887e Apr 15, 2016

Rui Peres

@RuiAAPeres RuiAAPeres force-pushed the RuiAAPeres:swift-playground branch from f6f887e to bb81ddc Apr 15, 2016

Rui Peres added some commits Apr 21, 2016

@RuiAAPeres

This comment has been minimized.

Copy link
Member Author

RuiAAPeres commented May 2, 2016

@mdiep what do you think about merging it with SignalProducers for now? I am feeling I am taking too long with this (not a lot of time) and I am getting behind as new stuff is added.

@mdiep

This comment has been minimized.

Copy link
Contributor

mdiep commented May 2, 2016

👍 👍

@mdiep mdiep merged commit 17bd952 into ReactiveCocoa:master May 2, 2016

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment