4 ms·
> Does anyone here have any experience using Go and Rust? What are your thoughts on the two languages? Rust has a much better type system, Go has a much better
by bluefishinit 3y ago
> Does anyone here have any experience using Go and Rust? What are your thoughts on the two languages?
Rust has a much better type system, Go has a much better standard library. The problems with Rust are that the async solutions are shifting sands and that most people "cheat" by just shoving everything into a Box on the heap instead of properly using lifetimes on the stack. Both of those lead to a lot of inconsistency and sort of defeat the purpose of using Rust in the first place.
The main problem with Go is verbose error handling, it may also be too high level for some systems level tasks Rust may be better suited to.
- sophacles 3y agoTheres lots of purposes of using rust in the first place. Some people want the performance. Some people want the safety guarantees and the checking the compiler does for correctness. Some people want the expressive type system (and combined with the above, the ability to encode constraints into data types). I don't think that people who choose based on the third but don't need super tight performance are using it wrong, they just have a different set of priorities than those that are using it for very high performance.