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

Irrefutable pattern syntax in let/lambda bindings #752

Open
krame505 opened this issue May 8, 2023 · 0 comments
Open

Irrefutable pattern syntax in let/lambda bindings #752

krame505 opened this issue May 8, 2023 · 0 comments
Assignees
Labels
enhancement good-first-issue wishlist Issues that I wish someone else would do

Comments

@krame505
Copy link
Member

krame505 commented May 8, 2023

We should be able to write e.g. \ (foo, bar) -> ... instead of \ fb -> case fe of (foo, bar) -> ... end. Similar for let, we should be able to write let (foo, bar) = ... . This should really support any irrefutable pattern on the LHS, such a single production for a nonterminal.

This should probably be done as an extension that re-uses the pattern matching extension syntax? That means we probably would also want to split things up into a "primitive let" modification and a "let" extension that supports patterns, like how pattern matching is currently structured.

#555 is a prerequisite for lambdas. We should probably get around to #243 and #38 before making any more changes to the let syntax, too.

@krame505 krame505 added enhancement good-first-issue wishlist Issues that I wish someone else would do labels May 8, 2023
@github-project-automation github-project-automation bot moved this to To do - uncategorized in Hackathon Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement good-first-issue wishlist Issues that I wish someone else would do
Projects
Status: To do
Development

No branches or pull requests

2 participants