3 ms·
I'm not sure I fully agree with that characterization. Many people would intuitively classify assignment as a statement, yet it's an expression in C, which is f
by codeflo 3y ago
I'm not sure I fully agree with that characterization. Many people would intuitively classify assignment as a statement, yet it's an expression in C, which is fully in the Algol tradition. And Rust is certainly a descendant of C, but blurs the lines a lot further with loops being expressions.
- jgilias 3y agoRust is certainly a descendant of ML. It just adopted curly braces to make it more palatable to C-ish people. https://doc.rust-lang.org/reference/influences.html https://doc.rust-lang.org/reference/influences.html
- colonwqbang 3y agoRust is a strict, GC-less Haskell but with a simpler type system and a more complicated syntax :)