logoalt Hacker News

jibalt • today at 1:12 AM • 1 reply • view on HN

Bizarre and ineffective analogy ... there are many reasons why either the moon or Mars might be a better choice.

The doubt about C++ over Rust isn't well founded either. For instance, someone might be considering Rust solely because of dissatisfaction with packaging or memory safety in C++.


Replies

Joker_vD • today at 2:05 AM

> Bizarre and ineffective analogy ...

It's a variation of the "apples to oranges" metaphor which is just as stupid. Like, those are both fruits, so they have very similar possible uses, you absolutely can compare them! It's comparing, I don't know, toasters and umbrellas — yeah, that'd be silly, but only because the result of the comparison would be instantaneously apparent. You want toasted bread? Use a toaster. Protection from rain? An umbrella is obviously superior. Painting a roof? Both are equally useless.

So, Rust vs. C++? You want language features, you want tooling, you want the library ecosystem, you want the resulting programs' performance. All of those are things that the languages can, and should, be meaningfully compared with each other on.