Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nim script is not supporting reading from stdin. #3983

Closed
enthus1ast opened this issue Mar 19, 2016 · 6 comments

Comments

Projects
None yet
3 participants
@enthus1ast
Copy link
Contributor

commented Mar 19, 2016

As reported here
http://stackoverflow.com/questions/36103424/how-to-read-from-the-stdin-with-nim-script/36103582 nim
script is throwing

Error: undeclared identifier: 'stdin'

when reading from stdin.

@Araq

This comment has been minimized.

Copy link
Member

commented Apr 4, 2016

Why would anybody want this? "Let's transform the compiler into an interactive program." Why?

@enthus1ast

This comment has been minimized.

Copy link
Contributor Author

commented Apr 6, 2016

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"

@Araq

This comment has been minimized.

Copy link
Member

commented May 31, 2016

Let's give Nimble this feature, not Nim.

@genotrance

This comment has been minimized.

Copy link
Contributor

commented Dec 30, 2018

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.

@Araq

This comment has been minimized.

Copy link
Member

commented Dec 30, 2018

  1. Reading from stdin makes the process unusable in a CI setting.
  2. The NimScript API offers the ability to add native Nim calls that can perform anything you need to do.

genotrance added a commit to genotrance/Nim that referenced this issue Jan 14, 2019

Araq added a commit that referenced this issue Jan 14, 2019

@genotrance

This comment has been minimized.

Copy link
Contributor

commented Jan 14, 2019

This has been implemented in PR #10292.

@genotrance genotrance closed this Jan 14, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.