I feel that people can learn rust faster if they know c++ beforehand.
c++'s syntax is scary too. But there are different levels of c++. You don't need to use the scary part to make things work.
I feel that people can learn rust faster if they know c++ beforehand.
c++'s syntax is scary too. But there are different levels of c++. You don't need to use the scary part to make things work.
Ding ding ding! However I do think that the combination of syntax with the brand new concepts just adds that extra layer of complexity. A similar thing is Optionals in Swift -- the syntax is so baked into the language that even if you really understand how optionals work, the syntactic sugar keeps piling up in different situations. (i.e., first the ? operator, then implicitly unwrapped optionals, then if lets, guards, guard lets...)
I’m curious about what you find scary about Rust’s syntax. I always found it to be a fairly natural extension of the syntax from C and other ALGOL-derived languages.
Its semantics, on the other hand, took quite a while to wrap my head around. I am reasonably productive in Rust these days, and I still sometimes can’t predict whether or not the compiler will allow something.
The borrowing model was actually my favorite part because it not only was interesting, but made sense! And the syntax was relatively clean :)