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

Rust Programming

8596 readers
27 users here now

founded 6 years ago
MODERATORS
1
Which is faster? (lemmings.world)
submitted 3 weeks ago* (last edited 3 weeks ago) by commander@lemmings.world to c/rust@lemmy.ml
 
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