Skip to Content
Mastering Functional Programming
book

Mastering Functional Programming

by Anatolii Kmetiuk
August 2018
Intermediate to advanced
380 pages
10h 2m
English
Packt Publishing
Content preview from Mastering Functional Programming

Summary

The traditional imperative approach relies heavily upon algorithms that are supposed to produce certain phenomena at runtime—the side effects. The compiler is usually not aware of these phenomena or is not aware of them enough. We can define the side effects for this book as instructions that modify the environment outside their immediate scope. Side effects are usually not desirable, because they put extra mental load on the programmer's mind.

Another problem with the traditional imperative style is the mutation. Mutable data structures are not thread-safe. Also, they cannot be safely passed between pieces of logic even within the same thread.

Functional programming aims to resolve these problems and reduce your mental load. This ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Functional Programming

Learning Functional Programming

Jack Widman

Publisher Resources

ISBN: 9781788620796Supplemental Content