Skip to content
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

More formal support for Scala #208

Closed
mattrjacobs opened this issue Mar 25, 2013 · 2 comments
Closed

More formal support for Scala #208

mattrjacobs opened this issue Mar 25, 2013 · 2 comments

Comments

@mattrjacobs
Copy link
Contributor

I'm still in the middle of fleshing this out, but roughly:

  1. Removal of all Object methods from rx-core
  2. Scala RxJava usage doesn't depend on runtime class lookup - instead it uses some implicits from Scala function types to Rx Func1, Func2, ..., FuncN to assert type safety while using native Scala closures
  3. Unit tests to demonstrate full coverage of Observable methods using Scala

Given the first point above, this will have to be combined with #204, so that support for dynamic languages continues.

@mairbek
Copy link
Contributor

mairbek commented Mar 25, 2013

Small addition.
For-comprehension for observable should be supported as well.
It means that Observable should have flatMap, map and withFilter methods.

@mattrjacobs
Copy link
Contributor Author

Good idea. At first glance, I think this could be accomplished by the introduction of an implicit class (ScalaObservable?) wrapping Observable that implements flatMap, map, and withFilter by delegating to mapMany, map, and filter, respectively. As long as all the methods still return an Observable, then we should be OK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants