How the fuck did this heaping pile of shit ever take off? Every single line you write feels like scratching your nails on concrete. EVERYTHING has to be painfully retarded.
>forced snake case (compiler gives you a warning if you use pascal case)
for num in nums { } //this destroys the array nums
for i in 0..1 { println!("{}", i); } //prints out 0. just 0.
>println! is a macro for some reason (whatever that means), the syntax is fucking cancer
>no you can't print an array because it has no "view window" or whatever the fuck. you have to write println!("{:?}, nums); every time
>have to end each line with ; in 2026. Every new language has figured out how to remove these stupid shits. not rust.
>STOP! YOU CAN'T INDEX AN ARRAY WITH AN INT, BECAUSE INTS ARE SIGNED. YOU HAVE TO CAST THEM TO usize EVERY TIME, TO PREVENT NEGATIVE INDEXES FROM CRASHING.
>but you can still crash if your index is out of bounds, and casting a negative int to unsigned guarantees you're out of bounds.
>No implicit type casting. anywhere. enjoy slopping your code with "as usize" every other line
>no implicit self in "structs" (totally not classes btw) methods. enjoy writing "self.doshit" every other line
>no initializers. instead you have to rely on someone else's dogshit code to write a ::new() method (totally not an initializer btw). Oh but there's deinitializers!
>no inheritance. it's replaced with 'composition' which is just inheritance. but instead of accessing v.z, you have to write v.w.x.y.z!
>language has no data types built in. you have to import everything. even dictionaries.
>enjoy padding every file with 100 lines of imports like use std::collections::HashMap
>can't access a dictionary using an index. you have to use HashMap.insert or HashMap.get
>no built in min / max functions. enjoy importing those too.
>"Vector" (totally not an array, pls don't call it that)