4 ms·
> I have encountered many situations where perfectly reasonable, zero copy, memory management that would be completely normal, fast and safe in C So you think.
by root_axis 4y ago
> I have encountered many situations where perfectly reasonable, zero copy, memory management that would be completely normal, fast and safe in C
So you think. It doesn't matter how smart you think you are, statistically speaking you're not smarter than a compiler.
- francasso 4y agoI think you are overestimating the expressive power of lifetime annotations in rust, and how smart the borrow checker is
- estebank 4y agoAnything you can express in C, you can in Rust. When it comes to pointer tricks you might have to use unsafe, but that is part of the language.
- platinumrad 4y agoIf only 50% of the community didn't think it was their job to scream at complete strangers for using that part of the language.
- nu11ptr 4y agoAgreed (unfortunately). There is too much of an obsession in avoiding unsafe at all costs in my opinion. When you consider all C/C++ is effectively written in an unsafe block then it seems a bit ludicrous to assume you would never ever use unsafe in tight, performant code.