I think what happens in Rust is that you *start out* thinking concretely about the borrow checker. Eventually, though, you just think about memory management abstractly and then reach for the Rust design pattern that satisfies the scheme you end up going with.
-
-
Maybe something akin to, but for rust memory management: https://deadlockempire.github.io/ Play an adversary who tries to break the software through the memory model (of other languages).
-
I learned about this game while I was learning Rust, and it actually helped me a lot.
End of conversation
New conversation -
-
-
"Gang of Four Design Patterns: Rust Redo Edition"
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
A Gang-of-Four-style book or online documentation would be a good start? I struggled with the original Gang of Four book because so many examples are in C++. But also, it's unclear if some of the patterns provide value beyond working around limitations of C++.
-
I would be down for this, but perhaps start with “patterns” that are less sophisticated, as to be suited for beginners. Early chapters less Gang of Foury and more templatey.
End of conversation
New conversation -
-
-
a blog post would be nice!
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Cute names and cartoon logos? :D
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Yes, this is the question. tbh, I'm glad we got elision (two versions) done as early as we did.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I REALLY need more examples! Do you know how long it took me to realize fn foo(self) consumes self? I’m talking years. Also, the mutability of a variable is part of its type signature. Mind blown. Lastly, borrow checking is just a typestate implementation.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Force them to use c++


Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.