this post was submitted on 08 Mar 2025
1 points (100.0% liked)

Rust Programming

8767 readers
2 users here now

founded 6 years ago
MODERATORS
1
Which is faster? (lemmings.world)
submitted 4 months ago* (last edited 4 months ago) by [email protected] to c/[email protected]
 
let mut variable: Type;
loop {
    variable = value;
}

or

loop {
    let variable: Type = value;
}
no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here