My favorite Erlang Program (2013)
What I found interesting (or very, very boring, depending on how you think about it) about this when I first saw it is that this ability is just due to the nature of how receive works. That is, you can receive any kind of message, at any time. Want to listen to a different set of messages? Just call a different receive clause, be that in a different function, or inline.<p>I remember having a coworker who was in love with Akka. He was trying to sell everyone on it, despite my team&#x27;s having a strong Erlang presence. He showed us Akka&#x27;s &quot;become&quot;, talking about how powerful that could be, and how Erlang didn&#x27;t have anything comparable. He didn&#x27;t seem to realize that Akka&#x27;s needing a special keyword for it was actually a limitation rather than a feature, that Erlang didn&#x27;t have a special keyword to allow you to do it because it didn&#x27;t -need- a special keyword to allow you to do it. That&#x27;s not a dig at Akka, or Scala (it&#x27;s an impressive language in its own right), but rather to point out how sometimes we miss the complex capabilities a simple set of abstractions can give us.