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

What possible benefits can this afford us?

Do we have to change our SQL query code to benefit from a database engine update that increases the query performance? The answer is no, and the same goes for our pure FP code.

What if all we had to do was write Functor(list).Map(add1) and define our custom add1 function? What if Functor was part of the Go Standard Library (or another very stable third-party package), and what if the next version of Go came out and it knew how to optimize performance based on the size of the list we passed it? Would that not be an automatic, significant benefit gained from simply compiling with the latest version of Go (or that other, very stable third-party package)?

This may not seem like a big win in terms of ...
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