4 ms·
This is indeed a superficial article: > Rust vs Python: advantages > Rust is well-designed. Rust allows for putting statements in a lambda and everything is a
by kbd 5y ago
This is indeed a superficial article:
> Rust vs Python: advantages
> Rust is well-designed. Rust allows for putting statements in a lambda and everything is an expression, so it’s easier to compose particular parts of the language. Python lacks it. Rust doesn’t have classes so the object orientation is not as evolved as it is in Python. Python also comes across with the necessity of writing more tests, production outages, or runtime crashes. Rust makes it less expensive to identify and fix possible bugs.
- bigdubs 5y agoRust definitely has advantages for safety and correctness. Those advantages come at a cost, specifically in terseness and readability, which are both _strengths_ of Python. As a result, they're very different tools, and comparing them shows that the author doesn't grasp their relative strengths and how those apply to their typical use cases.
- zozbot234 5y agoPython may be "terse and readable" when you're only dealing with very simple scripts, but the advantage quickly disappears in larger programs, where issues of modularization and, yes, correctness become paramount. It's choosing the wrong tradeoff in the first place. Rust makes the opposite choice, a small tradeoff in readability when starting out, in exchange for a long-term gain.
- bigdubs 5y agoNot every project is large, there are plenty of things that don't need the burdens that larger projects place on the code to just get things done and get them done well.