quark icon indicating copy to clipboard operation
quark copied to clipboard

`defpartial` and `defcurry` do not support zero arity functions without parentheses

Open florius0 opened this issue 3 years ago • 1 comments

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

florius0 avatar Jun 22 '22 19:06 florius0

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

github-actions[bot] avatar Jun 22 '22 19:06 github-actions[bot]