this post was submitted on 03 Dec 2024
142 points (100.0% liked)

chapotraphouse

13635 readers
652 users here now

Banned? DM Wmill to appeal.

No anti-nautilism posts. See: Eco-fascism Primer

Slop posts go in c/slop. Don't post low-hanging fruit here.

founded 4 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 1 month ago (1 children)

you dont need the return statement either

[–] [email protected] 2 points 1 month ago (1 children)

i dont even know what language this is :D i just thought it'd be a nice bit to silently pass over the racism aspect and nitpick the code

[–] [email protected] 2 points 1 month ago

It's Rust.

If you omit the semicolon on the last line, it will return that value, so suspect.race() == Race::Black will return true/false for the containing expression.