3 ms·
> why not use objs for named args? Because then there is no way of conveying the order of the parameters. In this case, it's ambiguous whether the method we ar
by bobbyi_settv 12y ago
> why not use objs for named args?
Because then there is no way of conveying the order of the parameters. In this case, it's ambiguous whether the method we are calling is colorWithRedGreenBlueAlpha, colorWithGreenBlueRedAlpha, etc.
- Zelphyr 12y agoOrder doesn't matter in the above example. In the method body you'd reference arguments[0].green when you wanted green.