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

Expose user-friendly version of read_value! for users #27

Closed
statiolake opened this issue Apr 6, 2021 · 0 comments · Fixed by #51
Closed

Expose user-friendly version of read_value! for users #27

statiolake opened this issue Apr 6, 2021 · 0 comments · Fixed by #51
Labels
enhancement New feature or request

Comments

@statiolake
Copy link
Owner

Sometimes we want to use the read value immediately, especially in very simple problem. For example it's useful if we can solve A + B problem like:

println!("{}", read!(i32) + read!(i32));

We have been using read_value! internally so all we need to do is to write a thin wrapper for that.
(Of course we can use read_value! itself even as it is now but it's hidden and a bit verbose for human writing.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant