Comment on Deno 1.14parentComments−justshowpost4yThat 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.−benatkin4yA 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.−justshowpost4yIf 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 -`
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 -`