Hacker News new | ask | show | jobs
by kbenson 2641 days ago
I can't comment from experience, but I have seen a lot of people here say that Rust feels a lot like something between C++ and Python/Ruby. I think the idea is that besides the static typing (which a lot of people that use Dynamic languages, like me, would love to enforce at times), if you use it in a functional manner it's fairly expressive and not that different looking/feeling that the equivalent dynamic language of large chunks of the code you write. As someone who's gone through the Rust book but not really written anything useful in it, that's how it appears to me sometimes too (and other times it appears to be an arcane incantation).

Edit: The solution here[1] is a good example of what I'm talking about I think. A lot of what's there is pretty obvious to someone familiar with JS/Ruby/Python/Perl, and they might even use a very similar looking solution. The Rust specific stuff is really the only foreign stuff, so if you assume you would learn that when learning the language, it's a pretty straightforward solution that looks similar enough to be inviting.

1: https://stackoverflow.com/questions/31986628/collect-items-f...

2 comments

Whether it can be used like an more FP-style Python/Ruby is one thing but whether it can replace Rails is a whole other question. This website is dedicated to answering that:

https://www.arewewebyet.org

(although looking at it again most of the content links are a bit old, but the library stuff seems current)

I think that a Web framework such as Flask (without the ecosystem of its plugins) or even Falcon can be replaced by a Rust app, as of today. But, I totally agree with the rest of the website. Before replacing a Django or a Rails project, there is some work!
Rust has that feel because it is new. I have no doubt that it will look like c++ in a few years. Full of "must have functions and extensions"