3 ms·
I agree, if C++ can be taught then so can Rust. But pedagogically, it is difficult to motivate why we can’t read a reference and mutate it in the same scope, s
by nequo 4y ago
I agree, if C++ can be taught then so can Rust.
But pedagogically, it is difficult to motivate why we can’t read a reference and mutate it in the same scope, since Python, JavaScript, Ruby, Lua, Lisp, Java, OCaml, C, etc. all allow it. It is much easier to accept this hurdle after having seen and debugged memory bugs and data races in, e.g., C.
- mr_00ff00 4y agoI’m sure it could be, and maybe I am wrong but I know people say rust has a rough learning curve. I learned C and Typescript before ever touching rust, and I feel like I experienced no rough introduction. Maybe it’s anecdotal, but I always assumed I learned memory and semi-functional programming first, which made rust a breeze.