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

define new Bridge operator to complement Map #230

Open
Tracked by #122
plastikfan opened this issue Apr 17, 2024 · 0 comments
Open
Tracked by #122

define new Bridge operator to complement Map #230

plastikfan opened this issue Apr 17, 2024 · 0 comments
Assignees
Labels
feature New feature or request

Comments

@plastikfan
Copy link
Contributor

plastikfan commented Apr 17, 2024

The current Map operator works, but it does not allow for items to be mapped to values that are not a T. This is quite restricting. We need to define a new operation that can turn an existing observable based on type T to another based on type O (other).

We can't simply add O to item, because that would also mean introducing it to every other generic class in the package. That would be unwise for the reason that the O type would not normally be required, but would need to be specified; but to what?; some kind of new nothing type?. Instead, we need a new Bridge instance, that is aware of both type T and O and provides the necessary mapping. The bridge would either have to be an object in its own right or a function that connects the 2 types. Note, that this would necessarily have to break the fluency currently in place; a new fluency chaiin would begin but based on type O instead of the original type T.

@plastikfan plastikfan mentioned this issue Apr 17, 2024
59 tasks
@plastikfan plastikfan self-assigned this Apr 24, 2024
@plastikfan plastikfan added the feature New feature or request label Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant