-
Notifications
You must be signed in to change notification settings - Fork 131
Closed
Milestone
Description
See: https://stackoverflow.com/a/22549439
Unused variables are always a programming error, whereas it is common to write a function that doesn't use all of its arguments.
One could leave those arguments unnamed (using _), but then that might confuse with functions like
func foo(_ string, _ int) // what's this supposed to do?
The names, even if they're unused, provide important documentation.
Andrew
Maybe it should be marked as opinionated.
Metadata
Metadata
Assignees
Labels
No labels