153
Borrow Checker (programming.dev)
you are viewing a single comment's thread
view the rest of the comments
[-] o11c@programming.dev 4 points 1 year ago

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.

this post was submitted on 03 Jul 2023
153 points (96.9% liked)

Programmer Humor

19544 readers
481 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