denoland / deno

A modern runtime for JavaScript and TypeScript.
https://deno.com
MIT License
95.42k stars 5.29k forks source link

Deno REPL doesn't preview the return value like Node does #8709

Open AnInternetTroll opened 3 years ago

AnInternetTroll commented 3 years ago

In node's REPL when you write a statement you can see it's output before running the code. This does not happen in deno as of now. This is a really nice feature for testing small bits of code without making your command line a long spaghetti mess. Example Image

caspervonb commented 3 years ago

I think we're blocking on rustyline's inability to be told when to poll, it presents us with a very strict callback driven "give me context information on a keystroke" style API at the moment.

That said, I'd like to have this along with completion hints I just need to find the time to grok the source and make something happen in upstream rustyline.