Closed enthus1ast closed 5 years ago
Why would anybody want this? "Let's transform the compiler into an interactive program." Why?
it would be nice to ask the user are you shure [y/n]: or param1 [foo]:
this would be very usefull in an interactiv build/bundle process. And it would be "always there"
Let's give Nimble this feature, not Nim.
Nimscript claims to be a standalone scripting language. Reading from stdin seems like a really basic feature. It may be the same VM used by the compiler at compile time but seems fair to allow more capabilities when using it in nimscript mode.
This has been implemented in PR #10292.
As reported here http://stackoverflow.com/questions/36103424/how-to-read-from-the-stdin-with-nim-script/36103582 nim script is throwing
when reading from stdin.