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

But how do we get rid of the side effects?

If you come from a purely imperative background, you may be quite confused at this point. Purely functional programming says that you need to eliminate all the side effects. But can you imagine a program without logging? And what would be the use of a web API that cannot connect to a network? If we cannot throw an exception, how do we specify the erroneous behavior of the program?

The side effects specified previously are essential to most modern applications, and it is usually not possible to imagine a reasonable program without side effects.

Therefore, it would be wrong to say that purely functional programming eliminates side effects from your program completely. Instead, it would be more precise ...

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