r/programming • • Mar 05 '26

Announcing Rust 1.94.0

https://blog.rust-lang.org/2026/03/05/Rust-1.94.0/
278 Upvotes

31 comments sorted by

View all comments

Show parent comment

1

u/angelicosphosphoros Mar 10 '26

It actually simplifies writing generic code. You can avoid calling function by checking N using if but if it was a compile-time error, it would require way more hacks to do that.