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

Eval minor refactoring #883

Merged
merged 4 commits into from
Aug 26, 2020
Merged

Eval minor refactoring #883

merged 4 commits into from
Aug 26, 2020

Conversation

anton-trunov
Copy link
Contributor

  • Added monadic projections fstM and sndM
  • In MonadUtils
    let%bind foo = bar in
    pure foo
    refactored into
    let%map foo = bar in foo
    This is especially useful when there are several independent let%bind expressions in a row because let%map also reflects that.
  • Minor refactoring in Eval, this is mostly about using Env.bind_all because it's much easier to read compared to List.fold_left ....

@anton-trunov anton-trunov merged commit 221d7c7 into master Aug 26, 2020
@anton-trunov anton-trunov deleted the eval-minor-refactoring branch August 26, 2020 12:52
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