Rust loops: similarities with Java and a new kind

Like every language, Rust also has loop system to iterate over array. In my Rust learning journey, I found many similarities between Java and Rust in terms loops and there are also a new kind of loop in Rust. . Like java, Rust has for-loop, for-each loop, while loop. . Rust has a new kind of loop called "loop" that is equivalent to "while(true)" in java. Rust doesn't have do-while but it can be achieved with while loop. . #programming #java #rust #developer #coding #backendDevelopment #SoftwareEngineering #learning #coding

To view or add a comment, sign in

Explore content categories