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

Remove lwt_ppx dependency #815

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

n-osborne
Copy link
Contributor

This PR proposes to get rid of the %lwt syntax from lwt_ppx in favor of the
Lwt_syntax.

It is based on #814, please consider only the last commit.

This is join work with @Julow (who wrote the tool making the automatic changes)

Most of the changes has been done automatically using the prototype tool
here. This is the reason why
the PR is one big commit.

This is a first step toward moving from Lwt to effect-based concurrency. The
idea is to homogenize the syntax in order to have less cases to handle (again
by an automatic tool).

This is also an independent contribution, as it removes one dependency and one
preprocessor. Which can be considered a win by itself.

let%lwt () = f v in
Lwt.return_true
| Some v -> let* () = f v in

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

ignore (React.S.retain s (fun () -> ignore effectful_signal));
Lwt.return_unit);
let* ss = th in

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There seems to be a white line after many let*. And indentation is different. Did you ocamlformat everything?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sadly ocamlformat doesn't seem to remove those newlines. I've updated by hand.

@n-osborne n-osborne force-pushed the remove-ppx-lwt branch 2 times, most recently from 22271f5 to a52f88a Compare March 19, 2025 10:49
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