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

Tracking issue for experimental "args" feature #1

Open
taiki-e opened this issue Mar 22, 2023 · 0 comments
Open

Tracking issue for experimental "args" feature #1

taiki-e opened this issue Mar 22, 2023 · 0 comments

Comments

@taiki-e
Copy link
Owner

taiki-e commented Mar 22, 2023

This issue tracks the experimental "args" feature.

Enable semihosting::experimental::env::args.

Open issues

  • This has APIs somewhat different from those of the standard library.
    The function has const generics that specify the size of the internal buffer.
    /// Returns the arguments that this program was started with.
    pub fn args<const BUF_SIZE: usize>() -> io::Result<Args<BUF_SIZE>> {

    The iterator is implemented only for reference since it returns Result<&str>.
    #[allow(clippy::copy_iterator)] // TODO
    impl<'a, const BUF_SIZE: usize> Iterator for &'a Args<BUF_SIZE> {

TODO: write more on open issues

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

No branches or pull requests

1 participant