▲ | bluetomcat 4 days ago | ||||||||||||||||
Rust encourages a rather different "high-level" programming style that doesn't suit the domains where C excels. Pattern matching, traits, annotations, generics and functional idioms make the language verbose and semantically-complex. When you follow their best practices, the code ends up more complex than it really needs to be. C is a different kind of animal that encourages terseness and economy of expression. When you know what you are doing with C pointers, the compiler just doesn't get in the way. | |||||||||||||||||
▲ | eru 4 days ago | parent | next [-] | ||||||||||||||||
Pattern matching should make the language less verbose, not more. (Similar for many of the other things you mentioned.) > When you know what you are doing with C pointers, the compiler just doesn't get in the way. Alas, it doesn't get in the way of you shooting your own foot off, too. Rust allows unsafe and other shenanigans, if you want that. | |||||||||||||||||
| |||||||||||||||||
▲ | za_creature 4 days ago | parent | prev [-] | ||||||||||||||||
> When you know what you are doing with C pointers, the compiler just doesn't get in the way. Tell me you use -fno-strict-aliasing without telling me. Fwiw, I agree with you and we're in good[citation needed] company: https://www.mail-archive.com/linux-btrfs@vger.kernel.org/msg... |