0e21e11e6e10eb08ced795a24f0a5dff75e42104
[kill9.git] / harmful / software / rust.md
1 # Rust sucks
2
3 [Related video](/rust.webm)
4
5 * Rust lacks a specification
6 * There is only one compiler
7 >\>Everything in rust is undefined
8 >\>Therefore Rust has more undefined behaviour than C.
9
10 * Cargo sucks
11 * Takes years to build
12
13 >\>Consider adding CString/* const i8 literals
14 >\>Use concat!
15
16 ```
17 macro_rules! c_str {
18 ($s:expr) => { {
19 concat!($s, "\0").as_ptr() as *const i8
20 } }
21 }
22
23 foo(c_str!("my string"));
24 ```
25
26 I'll add more things later, I'm busy rewriting Rust software in C ;-)