You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Shelby Moore III (shelby) said:
Bump. There is more than minor. Self-documenting code is very important. Why should the reader of the code have to go searching through the entire function body to realize the function parameter is not used.
When a method of a specific signature needs to be implemented, it would be helpful to somehow mark the arguments that are not going to be used.
Currently, the best solution is that we assign an argument name that hints that it is obviously not going to be used.
I propose that we add a yet additional usage of the underscore, this time for ignoring a method argument.
This should fit in nicely with the already existing method of ignoring the argument when creating a function value:
It is also compatible (in spirit) with the pattern matching system for ignoring everything but the type of the argument.
The text was updated successfully, but these errors were encountered: