Why not `do while`
⚓ Rust 📅 2026-01-24 👤 surdeus 👁️ 1Rust does not have support for do { ... } while (...).
I've seen several threads on this forum explaining how one can get around this, and I myself learned to structure code in such a way that I avoid the need for do while loops.
However, I haven't been able to find any discussions regarding why doesn't rust support it. I don't think it is because it would be hard to implement, so I'm really interested in knowing what's the rationale behind skipping this feature.
Is there any place where I can find this topic being discussed earlier (perhaps an old RFC or issue)?
Thanks ![]()
11 posts - 7 participants
🏷️ Rust_feed