Also, adding an &quot;catch all&quot; is usually not recommended in Erlang (even though it&#x27;s good for some things), so most of the time you would do just: foo(bar) -&gt; void.
And then let it crash if the value is something else than expected.