Hey #rustlang twitter, what was your 'aha!' moment when learning Rust?
-
Show this thread
-
Replying to @nick_r_cameron
Realizing I was *already* dealing with ownership and borrowing throughout my C code; Rust just does it all for me. Staring at libgit2's API and Python's API, full of statements like "free this when done with it" vs "returns a pointer to memory owned by another object, don't free"
2 replies 7 retweets 50 likes
Replying to @josh_triplett @nick_r_cameron
Even in managed languages, it gives you a language to communicate mutability that just wasn't there before. Not to mention that lifetimes affect more than freeing memory (e.g. python returns a file object -- who should close it?)
7:28 PM - 6 Jul 2018
from Albuquerque, NM
0 replies
0 retweets
4 likes
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.