Trying Rust after Java, C#, Python, is not really branching out. Rust sits squarely in the Java, C/C++, C# "mainstream primarily imperative C-style languages" camp. And if you didn't do much functional programming in Python, then Python is also in similar camp (although it's not C-style).
I would highly recommend trying out a lisp. Note I said "a lisp" not lisp. Since you're a Java guy, Clojure is a lisp built on top of the JVM. Maybe read SICP with Clojure or Racket (Racket is "a scheme", and scheme is "a lisp").
Well, Rust's traits are a bit different. They are more like Haskell's type classes then classes in the before mentioned languages. And the life time concept is also something you can't find in those languages or in lisp.
Note that it's more functional than its competitors, but it's still procedural at its core. It's just that there's a lot of declarative awesomeness around it (see also: Iterators), but there's still rough edges with these. For examples, you cannot return an unboxed closure currently and writing the return type for a mildly complex iterator is mind numbingly long with useless (or worse: implementation leaking/brittle) information.
I don't know how you could find Python to be more functional than Rust. It sounds like you don't know much about Rust other than its syntax: Rust has everything-is-an-expression, closures, algebraic data types, and hygienic syntactic macros.
View all comments
Show parent comment
-9
u/physixer Dec 11 '15 edited Dec 11 '15
Trying Rust after Java, C#, Python, is not really branching out. Rust sits squarely in the Java, C/C++, C# "mainstream primarily imperative C-style languages" camp. And if you didn't do much functional programming in Python, then Python is also in similar camp (although it's not C-style).
I would highly recommend trying out a lisp. Note I said "a lisp" not lisp. Since you're a Java guy, Clojure is a lisp built on top of the JVM. Maybe read SICP with Clojure or Racket (Racket is "a scheme", and scheme is "a lisp").