I have the following Elixir function:
defp prod(a, b\\0) do
a*b
end
When compiling, I get a warning:
warning: default arguments in prod/2 are never used
Why does he think the default will not be used?
Edit: here is the gist if you want to take a look at all this https://gist.github.com/findjashua/2ed4204247d76849eb81
source
share