title: How does the Erlang compiler implement pattern matching?
body: <p>I am wondering how pattern matching is usually implemented. for example in Erlang do you think its implemented at the byte-code level( there's a byte-code for it so that its done efficiently) or is it generated as a series of instructions (series of byte-codes) by the compiler?</p>
  <p>It is such a useful thing that I just have to put it into a toy language I am building.</p>