27
Borrow Checker (programming.dev)
you are viewing a single comment's thread
view the rest of the comments
[-] SJ_Zero@lemmy.fbxl.net 1 points 1 year ago
[-] snowe@programming.dev 0 points 1 year ago

I'm definitely missing something here. I'm terrible at rust and c++

[-] o11c@programming.dev 2 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.

load more comments (2 replies)
load more comments (2 replies)
this post was submitted on 03 Jul 2023
27 points (100.0% liked)

Programmer Humor

19503 readers
770 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