Skip to content

RxScala: Improve type inference #1391

@headinthebox

Description

@headinthebox

What do you think if we change the signatures below

def combineLatest[U,R](that: Observable[U], f: (T, U) => R): Observable[R] = ???
def zipWith[U, R](that: Observable[U], selector: (T,U) => R): Observable[R] = ???
def combineLatestWith[U,R](that: Observable[U])(selector: (T, U) => R): Observable[R] = ???
def zipWith[U, R](that: Observable[U])(selector: (T,U) => R): Observable[R] = ???

to improve type inference (so we don't need to provide explicit parameter types for the lambdas) , and for more uniform naming. It is kind of weird that we have zipWith but not combineLatestWith.

/cc @samuelgruetter, @zsxwing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions