by devit · 3y ago · 0 comments
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).
As good as Rust is, there is no such thing as "best" language.
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.