logoalt Hacker News

ModernMech • today at 1:51 PM • 1 reply • view on HN

If you don't use generics and monomorphization, then what explains it?


Replies

dralley • today at 2:03 PM

It's unlikely that many people are using Rust without using Option<T> or Result<T, U> a fair bit. Idiomatic Rust fundamentally uses a lot of generics. And a basic for loop expands into quite a lot of intermediate representation due to Iterator.

➕ show 1 reply