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

Chapter 4

  1. For this book, side effects are defined as modifications and interactions with the environment outside the scope of the current unit of logic (function).
  2. It is a data that can be changed by the program.
  3. They cause extra mental load on your mind, which may lead to bugs. There are much more things to keep in mind with side effects and mutable state. The scope of your attention must extend much further than the piece of logic that you are working on at the moment.
  4. It is a function that does not produce any side effects.
  5. The ability to substitute a call to a function with the result of that call in code without changing the semantics of that code.
  6. Decrease the mental load you face. Hence decrease the possibility of bugs.
  7. Errors, an ...
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