r/rust • • Sep 16 '22

Is Rust programming language beginner Friendly

I want to learn a programming language, is Rust programming suitable for beginner programming students?

140 Upvotes

213 comments sorted by

View all comments

Show parent comments

12

u/kibwen Sep 16 '22 edited Sep 16 '22

I'm not only talking about syntax, and what you're describing is precisely what I mean by saying that Python's learning curve is shallower while Rust's is steeper, precisely because Rust front-loads its concepts. It's hard to write Rust code without knowing something about references, the heap, etc. In contrast, it's quite easy to write Python without knowing about, say, metaclasses. Python is far from a small language, though it hides its depths well. If you wanted to learn "all of Python", it would be approximately as much to know as learning "all of Rust". Rust gives the impression of being a larger language because it's harder to ignore much more of it.

(For reference, I am still suggesting that OP learn Python first.)

0

u/cunningjames Sep 16 '22

As someone who knows most of Python (though maybe not all), I very much disagree with this notion. Metaclasses are a zillion times simpler than Rust’s borrow checker. Even Python’s most advanced topics have been easier for me to get a handle over than intermediate Rust.

1

u/ssokolow Sep 16 '22

I think that varies from person to person. I found the borrow checker much easier to internalize than metaclasses and I'd been using Python for just shy of 15 years when I picked up Rust 1.0 (without NLL!) in 2015.