this post was submitted on 13 Aug 2025
525 points (98.0% liked)

Programmer Humor

25671 readers
1980 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] ZILtoid1991@lemmy.world 6 points 1 day ago (2 children)

Would be better at illustrating Rust's cultiness if it were instead "Rust is not FP, you can opt out of it, and const by default is just good practice".

[–] Traister101@lemmy.today 25 points 1 day ago

I mean should const not be the default? I do want to mutate objects sometimes but usually I just need a view of it's state and not write access. It also makes mutable data a lot more obvious if whoever wrote the code your reading wasn't putting const on stuff they should have been. Seems like something all languages with const semantics should have done

[–] expr@programming.dev 6 points 23 hours ago

I'm confused... Rust isn't FP? Like that's just factual.