@burntsushi5 https://www.reddit.com/r/rust/comments/b5bpbb/drew_devault_rust_is_not_a_good_c_replacement/ejchrx1/ … Hi, I found your comment after looking up the author of a recent certain blog post.
What is zero-overhead polymorphism and why is it a major source of complexity in Rust (and why does it make unsafe harder)?
-
-
If you remove the ability to write generic code, then you also remove the ability to create easily reusable safe abstractions. This would in turn very likely increase the use of "unsafe" in Rust code, which would, to an extent, diminish its value proposition.
-
Therefore, generics aren't just a programmer convenience in Rust. They truly are central to the thing that Rust is trying to provide: zero cost abstractions + memory safety.
- 3 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.