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

The Golang difference

If you have spent most of your time up to now programming in other languages such as Ruby, you may be surprised when you get cyclic dependency errors.

Why are there no cyclic dependency errors in a language like Ruby?

First, Ruby is an interpreted language, so we will never get a compile error. Furthermore, Ruby determines the scope by namespaces. As long as Ruby has a unique reference to a block of code and that code has been loaded into memory, there should be no dependency reference errors.

Does that mean Ruby is better than Go in this respect?

It depends. Do we want to develop as quickly as possible without concerning ourselves with the dependency rule? Do we expect our application to grow complex over time? Do we ...

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