-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
assigning _ in the repl has side effects #5431
Comments
In the |
the use of |
. is not a valid identifier |
Just out of interest I thought I've do some provenance work on this
Underscore was born almost exactly one month later, on the 26th of October 2009 @ jashkenas/underscore@02ede85 Perhaps we should go argue to Underscore and lodash that they should change to something that won't conflict with Node? |
FWIW Chrome console uses |
To add to what @rvagg said, the underscore's behavior was copied from the python and ruby REPLs. |
I think |
It's been |
We could try two things:
|
@vkurchatkin |
I like that suggestion @vkurchatkin, would lead to fewer surprises like the one that prompted this issue |
Why not just disable |
I suggest to add an entry in
|
see #5438 for one option |
In Nodejs REPL env, where var _ = require('lodash') failed to be assigned, but abc can.
The text was updated successfully, but these errors were encountered: