Hacker News new | ask | show | jobs
by fiedzia 3267 days ago
In terms of ecosystem maturity Rust is far behind Python, but ignoring that and performance, it still has some merits:

- static analysis helps you avoid numerous issues that plague Python. Runtime errors are far less likely and you are forced to greater discipline when coding

- it is modern language. After using algebraic data types, pattern matching and traits it is hard to go back to old style OOP.

- You can extend existing types with your own traits, and so can library authors, so you have plenty of extremely useful extensions. Just add use clause referencing some library, and everything gets more useful methods, without any magic or monkeypatching, so it causes no issues as it could in some dynamic languages.

I'd say it is massive gain in terms of quality and maintainability, but at the cost of upfront investment. Rust isn't a language I'd expect people to write prototypes in, but with few crates it can be as expressive as Python in many cases.

1 comments

Having written tons of Python, Rust and several other languages, I have to add one more thing:

- The Cargo dependency and build tool is the best in any ecosystem. Easy to configure, works like a charm and gets improvements done regularly.

I don't miss setup.py/virtualenv/pip/pex at all.