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

JS references the language at the usage site, exactly like Python. There is no difference here in how the two languages behave.


No, it doesn't, it references the language at the declaration site, because the declaration site always is the usage site. You can't split them apart. You can split them apart in Python - see the example in my first comment.




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: