Skip to content
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

Issues overriding existing function names (editing functions) #138

Closed
hph opened this issue Jul 8, 2016 · 2 comments
Closed

Issues overriding existing function names (editing functions) #138

hph opened this issue Jul 8, 2016 · 2 comments

Comments

@hph
Copy link

hph commented Jul 8, 2016

I run into the issue quite frequently that I've written a function which I want to edit. It's very convenient to be able to press the up arrow and get the whole definition again, but it doesn't seem to be very effective, as the new function body is completely ignored.
There are, of course, workarounds for this, like choosing a new name for the function or always assigning the function to a variable (let func = function () { ... }), but this is a bit inconvenient.

Would it be difficult to make new name definitions override the previous one, similar to what happens in a browser console?

Other than that, fantastic job with this program! It's much better than the default Node.js REPL and it seems to be the best one out there.

@princejwesley
Copy link
Owner

Duplicate #29
Reason nodejs/node#548

@hph
Copy link
Author

hph commented Jul 8, 2016

Thanks @princejwesley, I've subscribed to the other issue.

@hph hph closed this as completed Jul 8, 2016
princejwesley added a commit that referenced this issue Jul 8, 2016
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

No branches or pull requests

2 participants