Skip to content

Conversation

svenheden
Copy link

Since a common misconception about the const keyword in ES2015 is that it prohibits mutation of values when in fact it only prohibits mutation of references I think it’s clearer to avoid this word in this context completely. When we talk about mutability and immutability in JS we almost always mean values and not references. So although the wording in this section is correct I think it should be re-phrased to avoid confusion. :)

@ljharb
Copy link
Collaborator

ljharb commented Nov 17, 2015

LGTM

goatslacker added a commit that referenced this pull request Nov 17, 2015
Avoid the word "mutate" while explaining `const`
@goatslacker goatslacker merged commit 639e3c7 into airbnb:master Nov 17, 2015
@iamnirav
Copy link
Contributor

nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants