Just because Mozilla worked on both languages doesn't mean they're related in any way. The goals, execution contexts, and safety guarantees of the two languages are completely different.
But unnecessary syntactic sugar seems to be a common trait.
I give up on this thread. :) I can code in both languages, by the way, and I could swear that Rust is just a systems-level version of JavaScript, or JS before the hipsters got their hands on it and made it insufferable.
I'll take that as canonical, then. I'm probably showing my naivety, but I don't grasp the reaction to the comparison. Both are basically C-family languages, there is a distinct Mozilla connection, and recent Rust development does seem to be web-focused. Rust has a lot of features that one would like JS to have, or get right, if it does have something comparable.
I think I'm missing some details. Is there a back story for why Rust developers wouldn't care for that comparison?
Those are all surface-level comparisons, completely outside the actual languages themselves.
And in particular, this thread is about static analysis of pointers to improve ergonomics while retaining memory safety. Javascript's approach to memory safety is just to use a garbage collector, which is essentially the opposite of the approach taken here.
That's an interesting point of view, but with some knowledge of different languages, Rust doesn't seem all that similar to me. Can you reference what languages you are thinking of that aren't like JS or Rust that makes you think JS and Rust are similar by comparison?
Haskell and Erlang come to mind. COBOL, if you really want a distinct comparison.
It might just be me, I wouldn't take my off the cuff commentary too seriously. I was kind of surprised when I started to learn Rust that the Internet makes it sound like this incredibly difficult and arcane language, and I thought, after getting a grasp on the basics, that it was much like a fine-grained Node. It's a nice language, I like it, personally.
Well, those are significantly different languages, one in paradigm and the other in implementation. I think most people are just used to comparing it to more common contemporary languages. If you have experience with other scripting/dynamic languages (Python, Ruby, Perl), JavaScript often feels much closer to them. If you have some experience with C or C++, portions of Rust seem really similar there as well. JS and Rust don't really seem any more similar to me than Python and C++. There are similarities in both, but likely just because there are current trends in language design that get followed, and languages steal good ideas liberally from each other.