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

Method calls on the same precedence level as application #107

Closed
ppolesiuk opened this issue May 26, 2024 · 1 comment · Fixed by #117
Closed

Method calls on the same precedence level as application #107

ppolesiuk opened this issue May 26, 2024 · 1 comment · Fixed by #117
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@ppolesiuk
Copy link
Member

A syntactic sugar for chaining method calls would be nice. For instance

m.foo x y
  >.bar 42
  >.baz 13

would be syntactic sugar for ((m.foo x y).bar 42).baz 13.

The choice of the syntax could be discussed. I like >. as in the above example, but other options I see are |. |>. .>. The |. is particularly interesting, because | has special meaning and the programmer cannot define such an operator.

@ppolesiuk ppolesiuk added enhancement New feature or request good first issue Good for newcomers labels May 26, 2024
@ppolesiuk
Copy link
Member Author

In a democratic process, we agreed on >. syntax.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant