this post was submitted on 27 Feb 2025
93 points (98.9% liked)

Programmer Humor

33658 readers
379 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 5 points 1 day ago* (last edited 1 day ago)

Depends on how fast you memorize and understand its 5 rules for ownership (3) and borrowing (2), and how much effort you put into memorizing its types.

The biggest hurdle I had with it is not reflexively understanding how the intermediate types it has work and how to bounce between them. For example: String -> &str -> String. Collection -> filtered/split slice of it -> back to Collection.. It's often not just 1 type either, it's multiple types which you get by functions declared in traits.. Just typing this is giving me a headache.

Combine unintuitive types/not knowing them all by heart with not fully understanding borrow/ownership rules, and you're going to have a bad time.

Long story short: it's a fantastic language, and I hope I never touch it ever again. I don't really need types or memory safety for what I do, but I appreciate it for what it is.