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

Functors, Monoids, and Generics

"Here's my attempt at functional programming in Go. I think it's a good idea, but I'm really not sure."

I have seen comments like this on over a dozen blog articles. I hope that after reading this chapter and working through the examples, you'll have a new-found love for functional programming (FP). Not because it's so pure that you worry that side-effect programming will send you to hell, but rather, because you feel comfortable with concepts that form the basis of pure FP and you see that its benefits outweigh the costs of learning how to use it.

Our goals in this chapter are as follows:

  • Appreciate how the lack of generics support in Go can be a good thing
  • Learn how to use a generics code generation tool ...
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