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

> Javascript manages without named parameters using anonymous objects, which is basically the same thing.

It's not. Unless you have a strict typing on the function in TS, you can't know if you're typing the right member.

This is actually one of the thing in PHP I like more than TS.

It takes no effort to provide meaningful names to parameters from the caller.



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

Search: