Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
agumonkey
on June 1, 2015
|
parent
|
context
|
favorite
| on:
How necessary are var, let, and const?
Isn't that a typical "corner case" in the understanding of dynamic languages bindings ? I think I've seen the same question pop about python. The array binding is constant, its content isn't.
EugeneOZ
on June 1, 2015
[–]
if value of constant can be changed, it's not constant. In my understanding. And by Wikipedia:
http://en.wikipedia.org/wiki/Constant_(computer_programming)
agumonkey
on June 1, 2015
|
parent
[–]
That's typical computer lingo / semantic issue. the `const` mean shallow/pointer constant, not deep/structurally constant.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: