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 piping #20

Open
ecton opened this issue Feb 27, 2024 · 0 comments
Open

Add support for piping #20

ecton opened this issue Feb 27, 2024 · 0 comments

Comments

@ecton
Copy link
Member

ecton commented Feb 27, 2024

In some languages, piping allows passing the result of the left hand side of the operator in as the first parameter of invoking the right hand side as a function call. E.g, foo.len() |> Int.max(5) would be equivalent to calling Int.max(foo.len(), 5).

Since Muse is too dynamic to support traditional extension approaches, this pattern will hopefully serve as a reasonable alternative.

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

No branches or pull requests

1 participant