News for hackers. Stuff that matters.
Re:“Rewrite It in Rust” Considered Harmful? [pdf] by steveklabnik on Wednesday May 24, 2023 @03:13PM (#36062711)
You can write almost exactly what you wrote, if you prefer

    fn main() {
        let args = vec![1, 2, 3, 4, 5];
        
        for arg in &args[1..] {
            println!("{arg}");
        }
    }

There are no comments on this comment yet.