-
Notifications
You must be signed in to change notification settings - Fork 418
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
Ambiguous variables should probably check arity #74
Comments
That's a valid argument. I am a bit uncertain whether or not to keep these checks at all. Originally you could write something like
Now, with a regular call to Long story short, you're suggestion to check the arity is a very good one to solve those problems. 👍 |
Woho, awesome! :) |
|
Yay! |
Josè has changed the generators in phoenix to use struct as parameter instead of model:
Credo doesn't like that:
So i asked Jose about it and he told me that Kernel only implements struct/2, so it is ok to use struct/0 here.
I think it would be right that NameRedeclarationByAssignment is actually checking the exact method. So not just
struct
butstruct/2
The text was updated successfully, but these errors were encountered: