Guard Clauses – Additional Level of Matching

You cannot view this unit as you're not logged in yet. Go to Account to login.


  1. Francisco Quintero on November 30, 2020 at 7:33 pm

    This is the feature I like most about Elixir. I mean, everything in general is awesome but this one is so simple and elegant.

  2. Mark Johnson on February 24, 2021 at 9:35 pm

    Another really good lesson. Learned a lot.

  3. Geoff Clayton on August 22, 2022 at 2:38 pm

    Hi, I have really enjoyed this course! I love learning new approaches to problem solving. As an experienced PHP and Javascript developer, I find that any exposure to functional programming is really good for my coding overall.

    One thing – I think you have a typo in the first code snippet of the section “Import Guard Clauses to Reuse”. Where you have `@defmodule` I think it is meant to say `@moduledoc`.

    • Mark Ericksen on August 22, 2022 at 3:17 pm

      Hi Geoff! Thanks for the feedback! I agree that learning from other languages can stretch our brains in new ways and make us better developers.

      Thanks for the typo report. Fixed!

  4. Caleb Josue Ruiz Torres on September 15, 2023 at 4:27 pm

    Cool lesson Mark!

    I think I will come back in the future for reference, too much valuable information over here.

    I also want to let you know that some links are broken:
    The one for `Kernel Module Documentation` in the Safe for guard clauses section.
    The other broken link is located in the Additional Resources for guard clauses section, the second item.


    • Mark Ericksen on September 17, 2023 at 5:22 am

      Thanks for the broken links info! Fixed.

Leave a Comment

You must be logged in to post a comment.