News for hackers. Stuff that matters.
Re:Tour of Rust by IshKebab on Sunday July 12, 2020 @06:33AM (#23810364)
It doesn't look like that because all the examples you see are working code. Try actually writing some and you will find it is quite difficult.

I would say it has a less steep learning curve than Haskell. But definitely steeper than most languages - C, C++, Go, Python, JavaScript, etc.

Re:Tour of Rust by wtetzner on Sunday July 12, 2020 @10:41AM (#23811689)
Of course, it all depends on your background. For me, the only part that took getting used to was the borrow checker.

However, I'm not really sure the learning curve for C++ is lower. There's a lot more to learn, and there's a good chance that you're just writing incorrect programs if you haven't gone through the effort of learning about ownership semantics anyway. Does that mean you've learned the language, or just that the compiler doesn't care?

Re:Tour of Rust by nilkn on Sunday July 12, 2020 @12:27PM (#23812494)
I'm always extremely skeptical when I see people claim C++ is easier than Rust. Rust essentially just makes you default to good practices in modern C++ and forces you to be explicit about things like copying data, allocating on the heap, etc. If C++ feels easier, it's because you either already know it and you're comparing it to something you don't know, or it's because your C++ code is actually very different than your Rust code (lots of heap allocations and copies vs. lots of stack allocations and moves), or it's because your C++ code has a lot of bugs that you haven't encountered yet.
Re:Tour of Rust by zozbot234 on Sunday July 12, 2020 @12:45PM (#23812649)
C++ feels easier because we have 30 years' experience with teaching it to novices as a first programming language. That counts for a lot. We still don't quite know how to do this with Rust.