News for hackers. Stuff that matters.
Re:Erlang's Open Telecom Platform (OTP) Framework [video] by lpgauth on Monday May 06, 2013 @09:00AM (#5662054)
Clause order matters.

--

  -module(ping).
  -export([ping/2]).

  ping(N, Pid) ->
      Pid ! ping,
      receive
          pong ->
              ping(N-1, Pid)
      end;
  ping(0, _Pid) ->
      ok.

  erlc ping.erl
  ping.erl:10: Warning: this clause cannot match because a
  previous clause at line 4 always matches
Re:Erlang's Open Telecom Platform (OTP) Framework [video] by vinoski on Monday May 06, 2013 @09:42AM (#5662279)
Correct -- immediately after the video was posted to InfoQ I posted a comment there to clarify and correct that error:

http://www.infoq.com/presentations/Erlang-OTP-Behaviors#anch...