— http://www.youtube.com/watch?v=xrIjfIjssLE
And sequel “Erlang: the Movie II”:
— http://www.youtube.com/watch?v=rRbY3TMUcgQ
Don't think wtf. Just watch.
--
-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
http://www.infoq.com/presentations/Erlang-OTP-Behaviors#anch...
— http://www.youtube.com/watch?v=xrIjfIjssLE
And sequel “Erlang: the Movie II”:
— http://www.youtube.com/watch?v=rRbY3TMUcgQ
Don't think wtf. Just watch.