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

You could call your js function with a string, and rather than a compile time error you'd get broken behaviour at runtime.


Inside the function you also have to continue using x as a number, like you wouldnt be able to accidentally pass it into a function accepting only string as argument etc.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: