Re:Why scientists are turning to Rust (2020)
by zozbot234 on Thursday August 04, 2022 @05:15PM
(#32348383)
Is the lack of GC that much of a showstopper for novice learners? If all they're writing is toy programs, they might as well use Rc<...> and accept that cycles will leak.
Re:Why scientists are turning to Rust (2020)
by lcall on Thursday August 04, 2022 @05:25PM
(#32348486)
My general impression is that it is, for many. Rust definitely has a reputation for being harder to learn than Python, for example, which is what I'm suggesting be fixed for one "step" of Rust. The ownership, borrowing, and lifetimes are a hurdle for someone who is almost certainly not going to be a full-time programmer, but needs to program sometimes, and more than toy programs.
I think even Rc might be a barrier, because it looks like more complexity than Pythonistas expect.
In other words, a step-by-step developer growth process from simple to hard, maybe 2-4 levels, governed by a Cargo.toml setting probably (comparable to a compiler switch), and you never have to throw away what you already learned. Like maybe "learn once, do anything".
(Yes, compatibility with peer group is probably a larger factor. But as an option for some where it fits.)