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

Javascript has supported this for many years.


It definitely hasn't, JavaScript doesn't even have named arguments.


If you pass your arguments as an object they are named and you can rename them. So for all practical purposes that's the same thing.


It doesn't have labelled arguments. It can roughly simulate them using an object, but there's a slight performance cost to doing so.




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

Search: