Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

1. Hype over Rust. 2. Pragmatism because of the many complexities with imperative programming and multi-tasking in a more and more multi-core world. 3. Hype over Rust.

:-)

I personally find Rust so ugly that I refuse to learn it. I don't understand why things like "let mut" are even allowed to exist. Why not simply "create" or "var" for "let mut" and "define" or "def" for "let"?

I am not trying to start a flame war, rather I believe I'm documenting my own ignorance of Rust, the language which I believe you are subtly referring to. I tend to learn languages from an aesthetic angle: If they look beautiful and practical to me (like Python with type annotations), I learn them. Otherwise I steer clear of them while waiting for the world to become ecstatic over them and cool down again a few decades later.



As a fellow person-who-has-not-learned-Rust… I don’t understand why (some?) people consider Rust to be a functional language.


If you consider Rust a functional language then you may also include C++ (17 and upwards) in that camp :(

I dont think Rust is a functional language and I also don't think functional programming is particularly popular in the industry right now.


Honestly, it might just be a matter of taste. Not everything is for everyone. For example, I find Python hideous in more than one dimension, yet I like Rust (and Ruby, weirdly enough).

Even though a lot (most?) Rust code you encounter will be written in functional style, it's not a FP language, but it does borrow some great FP/ML ideas.


Good point. But is Rust promoting FP now?


I think it depends on if you define a functional language as one that functional programs can be written in, or a language that can only write functional programs.

I often see JavaScript described as a functional language, so I think modern parlance leans towards the former.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: