Skip to Content
Learning Functional Programming in Go
book

Learning Functional Programming in Go

by Lex Sheehan
November 2017
Intermediate to advanced
670 pages
17h 35m
English
Packt Publishing
Content preview from Learning Functional Programming in Go

OOP inconsistency

An OOP application can recall its hidden information and mutate it. An object's method can be called multiple times during the lifetime of the application. Each call to the same method with the same call signature can produce different results every time. This characteristic of its behavior makes OOP unreliable and difficult to test effectively.

OOP is inconsistent with basic mathematics. In OOP, due to an object's mutable state, we cannot always call a method with the same parameters each time and always get the same results. There is no mathematical model for OOP. For example, if we call myMethod(1,2) and get 3 the first time and get 4 the next time, due to the mutable state and internal calls to other objects, then the ...

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: 9781787281394Supplemental Content