DEV Community

Discussion on: Functional Programming in Rust

Collapse
 
dystroy profile image
Denys Séguret

An immediate question is "Why Functional programming in Rust?".

Rust's model is a different approach which solves many problems that FP solves. Accidental side effects don't normally happen in Rust and data are immutable by default. You're kind of forced to a modular and maintainable design too and risk-free concurrent execution comes easily.

So, why would you need or want FP in Rust ? Just as a kind of more elegant style ?