2 ms·
> * Javascript-like syntax and a Javascript-like package manager I think this is not serious criticism. The "javascript-like package manager" reference actuall
by motorest 2y ago
> * Javascript-like syntax and a Javascript-like package manager
I think this is not serious criticism. The "javascript-like package manager" reference actually refers to fixing a major problem with the developer experience playing legacy programming languages such as C or C++. Java has those, .NET has those, every single mainstream programming language has those. Except C or C++.
Rust might be riddled with "the emperor has no clothes" aspects, but having a package manager is not it.
- pclmulqdq 2y agoThat's not a negative aspect of Rust, and I'm not picking out a list of things I dislike about Rust. Making a statement that isn't unequivocally positive does not equal criticizing something. Cargo is, however, a similarity with JS. On the whole a good one. Also, cargo works much more like npm than maven, for example.
- pornel 2y agoCargo has been co-created by Yehuda Katz, who worked on Ruby's Bundler before. Cargo has been designed after npm, so it definitely took lessons from it, but it doesn't make sense to just broadly attribute this to Rust being JavaScript-adjacent. The Rust syntax is not coming from JavaScript. It even has conflict with it, using `let` and `const` differently, since the `let` in Rust comes from Ocaml, not JS. Both JS and Rust copy from the same C/C++ roots. Rust's curly brace flavor is more similar to Go and Swift. The original author of Rust liked a lot of languages with different syntaxes, but the C-like syntax has been a pragmatic choice to avoid putting off the target audience of C++ programmers: http://venge.net/graydon/talks/intro-talk-2.pdf http://venge.net/graydon/talks/intro-talk-2.pdf