Perl 6's given: switch on steroids
They&#x27;ve reinvented OCaml &#x2F; SML pattern matching.  I wonder if they also compile it to efficient machine code?  Xavier Leroy&#x27;s famous ZINC paper goes into how you do that, and it&#x27;s pretty complicated (page 64 of <a href="http:&#x2F;&#x2F;caml.inria.fr&#x2F;pub&#x2F;papers&#x2F;xleroy-zinc.pdf" rel="nofollow">http:&#x2F;&#x2F;caml.inria.fr&#x2F;pub&#x2F;papers&#x2F;xleroy-zinc.pdf</a>)