Best practice

Method calls: favour argument bags over individual arguments

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