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

Named arguments syntax with function definitions #2494

Merged
merged 10 commits into from
Nov 7, 2023
Merged

Conversation

lukaszcz
Copy link
Collaborator

@lukaszcz lukaszcz commented Nov 2, 2023

  • Closes Function definitions in named arguments #2365
  • Implements the syntax f@{x1 := def1; ...; xn := defn} and f@?{x1 := def1; ..; xn := defn}. Each definition inside the @{..} is an ordinary function definition. The @? version allows partial application (not all explicit named arguments need to be provided). This subsumes the old record creation syntax.

@lukaszcz lukaszcz added enhancement New feature or request syntax labels Nov 2, 2023
@lukaszcz lukaszcz added this to the 0.5.4 milestone Nov 2, 2023
@lukaszcz lukaszcz self-assigned this Nov 2, 2023
@lukaszcz lukaszcz force-pushed the new-named-arguments branch from 12d692d to 4fe379d Compare November 3, 2023 16:38
@lukaszcz lukaszcz marked this pull request as ready for review November 3, 2023 18:35
@lukaszcz lukaszcz force-pushed the new-named-arguments branch 2 times, most recently from 37b4b0a to 98215a5 Compare November 6, 2023 15:06
@lukaszcz lukaszcz requested a review from paulcadman November 7, 2023 09:55
@lukaszcz lukaszcz merged commit 5948a38 into main Nov 7, 2023
@lukaszcz lukaszcz deleted the new-named-arguments branch November 7, 2023 11:02
@jonaprieto
Copy link
Collaborator

This must be documented, please. I just saw this.

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

Successfully merging this pull request may close these issues.

Function definitions in named arguments
3 participants