Open
Description
Bad
myMethod(arg1, arg2, arg3)
Good
myMethod({arg1, arg2, arg3})
Reasons
- this removes the Connascence of Position (CoP) because the order of arguments becomes irrelevant
- arguments to methods can easier be created programmatically
Watch out for
- removing support for currying
Thanks to
@ollin for pointing me to the connascence argument for this.
Metadata
Metadata
Assignees
Labels
No labels