You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to have functions implementing each of the commands for use in the repl - they don't actually need to use special syntax, since LiveScript already has command-like syntax for functions (e.g. could have a simple function load = (filename) -> ...).
The text was updated successfully, but these errors were encountered:
LiveScript's REPL only uses the Node.js REPL for tab completion; the actual interface you interact with is a custom Readline frontend backed by the vm module. So any commands you want would have to be implemented from scratch.
Are there any that would be especially useful to you? The LS REPL already has a few special functions exposed; I'm not fundamentally opposed to adding more, but some of those commands look like they'd be tricky to reproduce faithfully.
Node allows the use of dot-first keywords as commands in the REPL, such as
.load script.js
: https://nodejs.org/api/repl.html#repl_commands_and_special_keysIt would be nice to have functions implementing each of the commands for use in the repl - they don't actually need to use special syntax, since LiveScript already has command-like syntax for functions (e.g. could have a simple function
load = (filename) -> ...
).The text was updated successfully, but these errors were encountered: