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

> The main argument was that named arguments will cause your code to break when the arguments are renamed.

Here's the counter point : ordered argument list will break if the order is re arranged in the defined function. While for named arguments it doesn't.



> Here's the counter point : ordered argument list will break if the order is re arranged in the defined function. While for named arguments it doesn't.

Counter-counterpoint: Once you add support for named arguments, your cannot do either, as you don't know which convention the caller uses.


in Python you can (and should) define your keyword arguments as keyword-only, for that very reason.




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

Search: