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

Pattern Matching with Functions Calls #26

Open
Dwctor opened this issue Mar 27, 2023 · 0 comments
Open

Pattern Matching with Functions Calls #26

Dwctor opened this issue Mar 27, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Dwctor
Copy link
Collaborator

Dwctor commented Mar 27, 2023

Currently pattern matching only works for assignments. One future objective is to make these work with function calls too. So something of the likes of

def func(x), do: x + 5 
def func({x,y}), do: x + y

With this change both func(N) and func({N, M}) should work as intended instead of raising an error.

@Dwctor Dwctor added the enhancement New feature or request label Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants