Wrapping Up

In this chapter, we noted that object-oriented developers learning Elixir tend to use object-oriented concepts because that’s what they know, and we examined the most popular ones. Adopting Elixir means more than learning its idioms and syntax. To get the most out of it, you’ll need to understand its basic abstractions.

We started by examining how to think about mutable state. When you’ve made the transition, you’ll see how the concepts of behavior, state, and time go from something implicit and tightly coupled to much more explicit concepts. Just using stronger, higher-order abstractions such as processes and concurrency raise mutable state to a more serious level, where it belongs.

Next, we talked about polymorphism. Where most ...

Get Adopting Elixir now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.