With types on Python, and on Typescript, is here much benefit to using Rust?

⚓ rust    📅 2025-05-21    👤 surdeus    👁️ 5      

surdeus

Warning

This post was published 39 days ago. The information described in this article may have changed.

I'm re-reading this chapter.

I understand that the compiler helps catch bugs, and undefined behaviour, and I can't help but asking myself: how frequent are those in Python, or Typescript?

What I do "suspect" is that mutating Objects/Dicts and Arrays/Lists can be overlooked by a type system, and Rust would save those errors, IIUC.

Or maybe, in this case, the key benefit of Rust is speed due to less or no garbage collection, but I am unsure.

It's not about adding one or two snippets for Python or TS, I wonder whether there is an actual practical benefit in real world apps? Or general errors that one avoids? (also not comparing w/ typeless Python, or with JS, nor with people using Any/any.)

Maybe there is some blogpost you can recommend.
I loved Rust so far (I'm only ~ a week in though), but still have this doubt.

1 post - 1 participant

Read full topic

🏷️ rust_feed