4 ms·
Rust is the best programming language, so the question is more why you wouldn't use it. And the answer is you wouldn't use it if there's a library or existing
by devit 3y ago
Rust is the best programming language, so the question is more why you wouldn't use it.
And the answer is you wouldn't use it if there's a library or existing codebase in another language that is much better than the Rust equivalent, and the program is short enough that it's simpler to directly use that language rather than writing a binding or RPC interface.
Or if you need the software to be written by someone who doesn't know Rust and doesn't want to learn (but in that case, they might not be able to write a correct program in any language, so this strategy is probably best reserved when a program that only works properly sometimes is acceptable).
- Thaxll 3y agoComments like that make people not want to use Rust. As good as Rust is, there is no such thing as "best" language.
- adamnemecek 3y agoRust is as close to "best" as you can get.
- konart 3y agoThere is no such thing as "best" unless the problem and restrictions it creates are specified.
- synergy20 3y agowhat about golang for web developments then, it's arguably much easier to use, single binary, and memory safe.
- adamnemecek 3y agoEasier maybe, definitely not more pleasant, at least for me.
- jokethrowaway 3y agoI agree in principle, on the other side... I can't think of any other language with the combination of safety guarantees, high level language and a community producing very cool crates. Rust dethroned Haskell for me, and I'm excited my favourite language is actually an approachable one for once. I think everybody can learn Rust (unlike Haskell, I gave up on trying to teach people), you literally just follow the borrow checker until it works.