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

Rust Programming

8528 readers
31 users here now

founded 5 years ago
MODERATORS
5
Which is faster? (lemmings.world)
submitted 3 days ago* (last edited 3 days ago) by commander@lemmings.world to c/rust@lemmy.ml
 
let mut variable: Type;
loop {
    variable = value;
}

or

loop {
    let variable: Type = value;
}
you are viewing a single comment's thread
view the rest of the comments
[–] commander@lemmings.world -4 points 3 days ago

That's what I thought.