this post was submitted on 03 Jul 2023
31 points (100.0% liked)

Programmer Humor

19463 readers
376 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 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] o11c@programming.dev 2 points 1 year ago (1 children)

What you are missing, of course, is the Rc<Refcell<T>> that you have to stick everywhere to make a nontrivial Rust program. It's like monads in Haskell, parentheses in lisp, verbosity in Java, or warnings in C - they're the magic words you have to incant correctly to make things work in their weird paradigms.

[โ€“] lavafroth@programming.dev 2 points 1 year ago* (last edited 1 year ago)

Or an Arc<Mutex<T>> if dealing with threads.