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

Fix of the choose pull request. #143

Merged
merged 1 commit into from
Jun 5, 2020
Merged

Conversation

mrakgr
Copy link
Contributor

@mrakgr mrakgr commented Jun 5, 2020

Changed the implementation of choose again so as to allow the call to OnNext to be in tail position.

This is one of the rare cases where due a return being used in the catch branch, it is not actually possible to get the same efficiency in F# as it would be in C#. It is good that choose uses options intrinsically so it should be close to optimal.

…ain so as to allow the call to OnNext to be in tail position.

This is one of the rare cases where due a return being used in the catch branch, it is not actually possible to get the same efficiency in F# as it would be in C#. It is good that `choose` uses options intrinsically.
@mrakgr mrakgr changed the title Fix of the last pull request. Changed the implementation of choose ag… Fix of the choose pull request. Jun 5, 2020
@mrakgr
Copy link
Contributor Author

mrakgr commented Jun 5, 2020

The right way to implement all of this is subtle. Glad I spotted this.

@panesofglass panesofglass merged commit d569f18 into fsprojects:master Jun 5, 2020
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

Successfully merging this pull request may close these issues.

2 participants