Skip to content

Comment on Deno 1.14parent

Comments

That would make REPL difficult to use, since you would need to know in advance what you want to do to pass the right permission flags.

REPL is particularly useful when trying out things "live" as they come into your mind.

A common use case for a repl is to copy and paste code into it, or to give code to someone and have them run it. It's nice to not have to think about what the code could do to the system before running it.

If you have all code already, just paste into a file and run that file…

Otherwise you might want to check out piping support https://github.com/denoland/deno/pull/6130 Something like `echo "yourcodehere" | deno run -`

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.