3 ms·
How is D or OCaml more Rust-like than Go? Can you explain?
by dysoco 14y ago
How is D or OCaml more Rust-like than Go? Can you explain?
- pnathan 14y agoRust is basically ML + C's lovechild. Sophisticated type inference, mostly pure variables, pattern matching lambda functions, a few other FP goodies. But it's also a fairly clean imperative language if you care to use it like that. Generics, mutable variables, {}; syntax, pointers, etc. Also, more fundamentally, I see D, OCaml, and Rust as occupying a "let's be clean" kind of space. I see Go as occupying a "let's be scruffy" space; not really pushing the language state of the art, focused on industrial work; it's like a type-safer & compiled python, afaict. It doesn't really strive to push the state of the art, it seeks to solidify certain well-known taken ground in programming language design, and to be really focused on that. I'm not going to apply a "better" metric, I don't think that's appropriate because they are occupying different areas in the design space with different goals. If they were posed as straight-up competitors, then it'd be appropriate to measure them against each other.
- dysoco 14y agoI'll have to check Rust then, seems interesting. Although I see Go as a clean language: A "better" C and D as a "cleaner C++".