Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



Order doesn't matter in the above example. In the method body you'd reference arguments[0].green when you wanted green.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: