Hacker News new | past | comments | ask | show | jobs | submit login

It takes a special kind of human to name variable "name" but not have it be a string.



Something like

  name = {first: "Jane", last: "Doe"}
isn't obviously unreasonable. Which actually sets name to the string "[object Object]".


Falsehoods programming languages believe about names.


I work with such humans! I was looking at that exact situation a few moments ago.


I can imagine someone doing this if they were using "name" as a verb




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

Search: