Re:Why is Rust difficult?
by bitL on Monday January 22, 2018 @01:21AM
(#16202284)
It's simply one more thing you need to keep in your internal "context" while writing a program, taking mental resources you could spend elsewhere. Perhaps an IDE guiding you and outright rejecting the code or offering code completion that is compatible with borrow checker might be a solution, though we aren't there yet I believe.
[ Parent
| on HN ]
You have to keep the kind of problems the borrow checker nags you about in your mind anyway. Memory errors and concurrency problems don't go away because the compiler doesn't complain about them. Personally, I find it easier to use Rust than C++, because I don't have to worry so much about iterator invalidation and stuff like that.
Re:Why is Rust difficult?
by steveklabnik on Monday January 22, 2018 @10:05AM
(#16204821)
Experienced Rust programmers usually say the opposite: the borrow checker frees you from thinking about it since the compiler lets you know when you mess up.
Re:Why is Rust difficult?
by SamReidHughes on Monday January 22, 2018 @01:22AM
(#16202287)
You have the same thing in C++, right?
Yes, and sometimes I wish C++ stayed somewhere in pre C99 levels where a single person could master it. As much as new features are useful, they make codebases unreadable to anyone that doesn't grasp all concepts. Even Google internally "javaizes" C++ and uses a strict subset to keep some sanity. Scala is another language that can go insane in the same fashion if teams don't enforce strict rules.
Re:Why is Rust difficult?
by SamReidHughes on Monday January 22, 2018 @03:08PM
(#16207444)
Rust is a "Javaization" of C++ checked by the compiler.