modularml / mojo

The Mojo Programming Language
https://docs.modular.com/mojo/manual/
Other
23.18k stars 2.59k forks source link

[Feature Request] support system.stdin for interactive user input #3001

Open GeauxEric opened 4 months ago

GeauxEric commented 4 months ago

Review Mojo's priorities

What is your request?

similar to Python's sys.stdin: https://docs.python.org/3/library/sys.html#sys.stdin

What is your motivation for this change?

Current applications can only handle user input either from file or from argv. If one wants to develop an app that takes interactive user input, such as a repr, there is no way.

Any other details?

No response

JoeLoser commented 3 months ago

Thanks for filing the issue! Definitely something we'll want to support, but isn't a current priority for our small team. I've marked this as Postponed for now so we don't forget to circle back in the future.