-
Notifications
You must be signed in to change notification settings - Fork 172
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
function request: Lwt.ignore #332
Comments
There is already |
I thought such a function to be convenient in order to shorten code of the form:
to:
which would be the lwt equivalence of
While
would be fine too, |
I typically write some_lwt_action () >|= ignore with |
There is also Lwt.async some_lwt_action (* : unit *) which is a bit different from |
(well, |
| @aantron: It is suitable but... I guess as a Haskeller I'm still struggeling with... a cultural issue. Ater a year of OCaml programming I'm still trying to get a feel on the attitude of the OCaml community towards extending libraries with new generic functions. So far I percieve this attitude as very conservative. Personally I would love to have a common language shared by various "monads" such as |
1 similar comment
| @aantron: It is suitable but... I guess as a Haskeller I'm still struggeling with... a cultural issue. Ater a year of OCaml programming I'm still trying to get a feel on the attitude of the OCaml community towards extending libraries with new generic functions. So far I percieve this attitude as very conservative. Personally I would love to have a common language shared by various "monads" such as |
It's definitely important to have a common language between monads. I wish this was the case, too. However, I think, unless people get together and explicitly make that a shared focus, it will have to wait until modular implicits are added to the language, or something like that. For extending Lwt specifically, I'm not particularly against it in the long term. However, at this time, Lwt has quite a bit of technical debt, which consumes the time, and patience, of maintainers and potential contributors. I'm really focused on decreasing that, which makes me temporarily biased against adding new APIs or features. So, while Lwt has this inward focus, it will be more conservative than might otherwise be ideal. |
I see. Thanks a lot for these explanations! |
Lwt.ignore = Lwt.map ignore
The text was updated successfully, but these errors were encountered: