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

Add support for |> in uncurried mode by desugaring it #6083

Merged
merged 1 commit into from
Mar 17, 2023

Conversation

cristianoc
Copy link
Collaborator

Desugar the semantics of |> in uncurried mode so existing curried code still compiles. But the code will stop using |> after formatting.

For example: 3 |> add3(1,2) would not compile when add3 has 3 arguments. But after desugaring, the third argument is added.

@cristianoc cristianoc requested a review from cknitt March 17, 2023 12:59
Desugar the semantics of `|>` in uncurried mode so existing curried code still compiles. But the code will stop using `|>` after formatting.

For example: `3 |> add3(1,2)` would not compile when `add3` has 3 arguments. But after desugaring, the third argument is added.
@cristianoc cristianoc merged commit b140da1 into master Mar 17, 2023
@cristianoc cristianoc deleted the triangle_uncurried branch March 17, 2023 13:10
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.

1 participant