top | item 41260189

(no title)

stevefolta | 1 year ago

Yeah, Rust is the language for people who think C++ is not complex (or hostile) _enough_.

discuss

order

sylware|1 year ago

When I tried to read some rust, I was surprised on how much alien it is to mainstream languages and how convoluted the syntax is.

whytevuhuni|1 year ago

My experience (and I admit I may be too biased given years of prior C/C++ experience) is that Rust's syntax is a necessity, since no other mainstream languages besides C/C++ are as low-level as Rust.

Most mainstream languages have a GC, and don't support distinguishing between values on the stack or references, don't need to deal with lifetimes or don't provide the safety you get with them, etc.

I'm curious though, could you give an example of syntax you consider convoluted, and how you would do it instead?