4 ms·
Well, I have been writing both high and low level code in Rust, and I must admit I've been happily falling into that "trap". The nice thing about Rust for high
by llogiq 5y ago
Well, I have been writing both high and low level code in Rust, and I must admit I've been happily falling into that "trap". The nice thing about Rust for high level software is that it lets us specify interfaces in a way that makes them actually usable without delving into the low level details.
A lot of things that are hand waved away in C++ (who owns this? How long does this need to be alive? Can I mutate this?) are completely explicit in a Rust interface. And Rust's type system is strong enough to express a lot of rules that no one would want to write down in C++ (because overriding them is just one cast away), allowing us to write hard-to-misuse libraries.
Coding on top of such libraries is a really fun experience. That's why I call Rust an all level language.
- pron 5y agoDifferent languages appeal to different people, and there is no doubt some individual programmers will find Rust appealing even for application programming, just as some found C++ appealing for similar purposes. But a CIO of, say, an insurance company who decides that internal applications will be written in Rust would be making a very imprudent financial decision.