• 0 Posts
  • 15 Comments
Joined 11 months ago
cake
Cake day: August 15th, 2023

help-circle






  • Metype @lemmy.worldto196@lemmy.blahaj.zonework(rule)flow
    link
    fedilink
    English
    arrow-up
    0
    ·
    4 months ago

    i is already initiated so the first statement isn’t necessary so it’s empty.

    The loop is ended with a conditional break statement so the loop end criteria isn’t necessary so it’s empty.

    We want each iteration to increment i so it’s i++

    That’s how you end up with (;;i++)




  • Metype @lemmy.worldtoProgrammer Humor@lemmy.mlSTOP WRITING C
    link
    fedilink
    English
    arrow-up
    1
    ·
    5 months ago

    There’s a project I could have written in Rust. Maybe some of the headache wouldn’t have ever happened using Rust.

    I also didn’t know Rust at the time and it was a large project with unkind deadlines. I think the right tool for the job can also depend on available resources. So while the more unsafe, older tool I used caused a few small issues that Rust would not have; the project wouldn’t have been finished if I’d used Rust.