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

defpartial and defcurry do not support zero arity functions without parentheses #45

Open
florius0 opened this issue Jun 22, 2022 · 1 comment · May be fixed by #46
Open

defpartial and defcurry do not support zero arity functions without parentheses #45

florius0 opened this issue Jun 22, 2022 · 1 comment · May be fixed by #46

Comments

@florius0
Copy link

Turns out, in Elixir AST if a function/0 is defined without parentheses (def function, do: nil), the arguments that are passed to macro is {:function, _, nil}, instead of {:function, _, []}, thus breaking defpartial and defcurry

@github-actions
Copy link

Thank you for submitting an issue! It means a lot that you took the time -- it helps us be better 🙏

florius0 pushed a commit to florius0/quark that referenced this issue Jun 22, 2022
@florius0 florius0 linked a pull request Jun 22, 2022 that will close this issue
2 tasks
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

Successfully merging a pull request may close this issue.

1 participant