Though primarily about processes, messages, and servers, another thing I found significant in this chapter is the liberal use of lambda functions. Many places where I would tend to create a new function and then call it are replaced with lambda functions. Need to become more comfortable with this.
Notable Notes and Quotes
- “To make a process run forever, you must use endless tail recursion.”
- “A server process can be considered a synchronization point.”
- “You can refactor this (loops) by relying on pattern matching and moving the message handling to a separate multiclause function. This keeps the code of the loop function very simple”
My Github repository. Book samples Github code samples.
Quotes are excerpts From Elixir in Action, Third Edition, Sasa Juric. All notes and comments are my own opinion. Follow me at @rgacote@genserver.social