Re:Some mistakes Rust doesn't catch
by rthomas6 on Tuesday February 08, 2022 @09:02AM
(#30258445)
I haven't used Zig, but my understanding is that Zig is more comparable to C, whereas Rust is more comparable to C++. Zig is a much smaller and simpler language, but Rust has more high level constructs and abstractions.
[ Parent
| on HN ]
I can't comment on either, but I do enjoy C and you can build relatively safe C programs using tools like Valgrind and static analysis. So unless you are building the next OpenSSL it could very well be worth sticking to C11.
> whereas Rust is more comparable to C++
That only in matter of complexity. If rust were actually comparable to C++ it will a major mess.
Rust is actually a ML + C + Haskell-ish lang..
And that's exactly why I am a bit worried about learning it. I am not looking for a language that is too theoretical, like Haskell.
> I am not looking for a language that is too theoretical, like Haskell.
Rust is not "theoretical", but have some theory applied to great effect. The comparison to Haskell is more in the use functional idioms, algebraic types, pattern matching and bits here and there...
Re:Some mistakes Rust doesn't catch
by programmer_dude on Tuesday February 08, 2022 @09:26PM
(#30267933)
It's a very practical language (more than C or C++). But it does have a challenging learning curve.
Pay no attention to how the language was derived. Just dive into it.