I really wished I learned how the memory ownership worked before I started coding a transpiler (which was my first Rust project). I thought yeah, I code C++, I'm familiar with pointers, Rust shouldn't be a big deal. Then couple hundred lines in I realized how wrong I was :/
Agree, I write code for more than 20 years, and I think it's easy to learn any new language based on my knowledge, and then I failed to understand how Rust's memory management before reading the document.
Take two or three hours to study how it works will save tons of your time to fight with the Rust compiler.
Thanks for the reply!
Yeah, I think ownership is quite a unique feature of rust, and takes some time to grasp. I too kept tripping on it initially when I started learning Rust , and sometimes still do :) :)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I really wished I learned how the memory ownership worked before I started coding a transpiler (which was my first Rust project). I thought yeah, I code C++, I'm familiar with pointers, Rust shouldn't be a big deal. Then couple hundred lines in I realized how wrong I was :/
Agree, I write code for more than 20 years, and I think it's easy to learn any new language based on my knowledge, and then I failed to understand how Rust's memory management before reading the document.
Take two or three hours to study how it works will save tons of your time to fight with the Rust compiler.
Thanks for the reply!
Yeah, I think ownership is quite a unique feature of rust, and takes some time to grasp. I too kept tripping on it initially when I started learning Rust , and sometimes still do :) :)