deprecated-async-problem icon indicating copy to clipboard operation
deprecated-async-problem copied to clipboard

Added pull-streams version of async problem

Open kwijibo opened this issue 8 years ago • 3 comments

Hi, I've created a pull-stream version of the Async Problem. It's my first time using the pull-stream libraries, so there may be a neater way of writing it.

kwijibo avatar Mar 20 '17 14:03 kwijibo

Does all the code need to live in main, @kwijibo? I ask because we already have lots of examples of approaches which fail to separate the pure transformations from the impure code. :stuck_out_tongue_winking_eye:

davidchambers avatar Mar 20 '17 14:03 davidchambers

You can compose and modularise pull-streams pretty well it seems - I managed to move some stuff out. It would be nice though, if there were something like a parachain in order to use the same file() pull stream in both steps. I'm not sure what I think of pull-streams as a solution (to this particular problem), I just wanted to get a feel for them.

kwijibo avatar Mar 20 '17 17:03 kwijibo

I appreciate the pull request, @kwijibo. I'd like to avoid reaching the point where there are dozens of examples which do not satisfy the requirements distracting from the one or two examples which do satisfy the requirements. As a result I'd like to leave this pull request open indefinitely, so that those interested in pull-stream may find it.

davidchambers avatar Mar 20 '17 18:03 davidchambers