>>108146269
Thank you for your honest answer. I'm obviously shitposting when implying that I'm gonna quit, because ultimately I'm doing this fun, but I'm serious when I say I'm not feeling it. I don't like that everything seems to have a method and some sort of abstraction implemented from the get-go. It makes the code feel very impersonal and inflexible. The code looks ugly to me and the vibes are off.
match guess.cmp(&secret_number) {
Ordering::Less => println!("Too small!"),
Ordering::Greater => println!("Too big!"),
Ordering::Equal => println!("You win!"),
}
>A match expression is made up of arms. An arm consists of a pattern to match against, and the code that should be run if the value given to match fits that arm’s pattern. Rust takes the value given to match and looks through each arm’s pattern in turn.
Statements dreamed up by the utterly deranged!