How would this example be in older rust?
⚓ Rust 📅 2025-06-26 👤 surdeus 👁️ 17This is a very beginner question.
In the release post for 1.88, they define Let Chains which look nice:
if let Channel::Stable(v) = release_info()
&& let Semver { major, minor, .. } = v
&& major == 1
&& minor == 88
{
println!("`let_chains` was stabilized in this version");
}
I assume without the chains this would be
if let Channel::Stable(v) = release_info(){
if let let Semver { major, minor, .. } = v {
if major == 1 && minor == 88 {
println!("`let_chains` was stabilized in this version");
}
}
}
Or how?
6 posts - 3 participants
🏷️ rust_feed