Programming Languages The New Version Of Rust Arrives With This Long Awaited Feature
According to the Rust release team, IntoIterator for arrays was a long-awaited feature but was not implemented before because of backward compatibility problems. This means you can now iterate over arrays by value: as Rust Library Team lead Mara Bos pointed out on Twitter, before IntoIterator for arrays arrived, “you could iterate over &[1,2,3] and &mut [1,2,3], but not over [1,2,3] directly.” SEE: 10 ways to prevent developer burnout (free PDF) (TechRepublic) “The reason we didn’t add it sooner was backwards compatibility,” she explained....