Thursday, 22 August 2013

Does/Will Rust support functional programming idioms?

Does/Will Rust support functional programming idioms?

As Rust gets fleshed more and more, my interest in it begins to peek. I
love the fact that it supports algebraic data types and in particular
matching of those, but are there any thoughts made on other functional
idioms?
E.g. is there a collection of the standard filter/map/reduce functions in
the standard library, and more important, can you chain/compose them in a
syntactical pleasing manner [1]?
Since there are already elegant means for ADTs to be used, how about
monads, in particular some syntactic sugar for them?
[1] Haskell got (.) and (>>>), C# extension methods and optionally LINQ, D
has unified function call syntax.

No comments:

Post a Comment