-
Book Overview & Buying
-
Table Of Contents
The Rust Programming Handbook
By :
Let’s take a moment to appreciate another wonderful aspect of Rust: its support for functional programming ideas.
Functional programming is a style where we treat computation as we do evaluating mathematical functions, often preferring immutable data and steering clear of side effects.
Even though Rust isn’t solely a functional language (it’s actually multi-paradigm), it adopts many helpful concepts from this style because they bring so many benefits.
Using these functional techniques often makes your code cleaner, more declarative, and easier to understand and debug.
And by reducing side effects, these patterns can make it simpler to develop correct and efficient concurrent code, which is one of Rust’s key strengths. When you combine these ideas with Rust’s other powerful features, you get the ability to write code that is not only concise and expressive but also robust and reliable!
Let’s...