4 ms·
Since you're comparing Haskell and Rust, what do you think about functional style programming in Rust? Can you do similar things in Rust as you can in Haskell o
by amelius 5y ago
Since you're comparing Haskell and Rust, what do you think about functional style programming in Rust? Can you do similar things in Rust as you can in Haskell or is the lack of GC limiting here? (I suppose that Haskell has important reasons to have a GC).
- eof 5y agoI guess I can't say much about it. I am barely past a beginner as far as Rust goes, but I have not seen much embracing a functional style. In fact with the emphasis on (mutable) references vs values; it seems to pretty much encourage the antithesis of functional programming. What I really love about functional programming is the simplicity of understanding what is going on from looking at the code; functional programming does that by guaranteeing a "function" is always-and-only acting in a specific, simple way. Rust does it (not quite as strictly to my learning-eye) with forcing the tediousness of references/mutability up to the signatures.