* Created a subdirectory for browsers
[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
9 >\>Therefore Rust has more undefined behaviour than C.
10
11 * Cargo sucks
12 * Takes years to build
13
14 >\>Consider adding CString/* const i8 literals
15
16 >\>Use concat!
17
18 ```
19 macro_rules! c_str {
20 ($s:expr) => { {
21 concat!($s, "\0").as_ptr() as *const i8
22 } }
23 }
24
25 foo(c_str!("my string"));
26 ```
27
28 I'll add more things later, I'm busy rewriting Rust software in C ;-)
29
30 ![](rust.png)