Getting Started with Elixir - Control Flow

Control flow expressions are not used as often in Elixir as with more imperative languages mainly because controlling execution flow can be handled with a mix of pattern-matching, multi-clause functions and guard clauses.

And though using control flow expressions may be easier to understand at first, as the complexity of a program increases, nested control structures can start to creep in. Then we can simplify our code using the more functional patterns mentioned earlier.

There will definitely be times when you need to rely on Control Flow Expressions so it's worth understanding how they work.

Elixir Series

Connect

I hope you're finding this series helpful. If you find any issues or have any feedback feel free to hit me up on twitter: @tmartin8080 || @phxroad or subscribe to the mailing list to receive occasional updates.