[erlang-questions] Why does Core Erlang have a catch-all clause for everything?

Loïc Hoguin essen@REDACTED
Fri Jan 19 11:45:21 CET 2018


Hello,

A short discussion about exceptions left us wondering why generated Core 
Erlang code always has a catch-all clause for things that don't match? 
Is it so it can throw a specific exception? And what would happen if the 
catch-all was missing and the input failed to match?

Cheers,

-- 
Loïc Hoguin
https://ninenines.eu



More information about the erlang-questions mailing list