this post was submitted on 28 Nov 2021
9 points (100.0% liked)
Rust Programming
8159 readers
1 users here now
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I love writing rust and I've done all my personal projects for the last 4 or 5 years in it, but I dont think it's a good idea for other existing languages to adopt more of Rust's features.
Languages like Elixir or Lisp are so different it doesn't make any sense to adopt Rust semantics or syntax, and anything with a garbage collector, Go included, doesn't need to care about ownership, borrowing, or lifetimes (besides the usual passing references being cheaper than passing whole objects).
Languages like C or C++ can definitely be replaced in many cases with Rust, but I dont think making them more like rust is a wise decision. Adopting something like a borrow checker in c or c++ completely changes the language in a way thats not only backwards incompatible, but also probably not welcome by developers already working in those languages.
All this to say: I'd prefer more people to work in rust than to alter other languages to be more like rust, but I also think there are a number of other languages worth learning and working in. To a large extent, choosing a language is about taste.