quark
quark copied to clipboard
`defpartial` and `defcurry` do not support zero arity functions without parentheses
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
Thank you for submitting an issue! It means a lot that you took the time -- it helps us be better 🙏