[erlang-questions] Beginner question

Onorio Catenacci <>
Wed Mar 16 13:00:32 CET 2016


>
> Message: 6
> Date: Tue, 15 Mar 2016 21:22:30 -0700
> From: Joe Armstrong <>
> To: Pietro <>
> Cc: Erlang <>
> Subject: Re: [erlang-questions] Beginner question
> Message-ID:
>         <
> >
> Content-Type: text/plain; charset=UTF-8
>
> Here's a tip
>
> I *always* start writing message processing lops like this:
>
>     loop(State) ->
>          receive
>                Any ->
>                     io:format("***unexpected ~p~n",[Any]),
>                     loop(State)
>          end.
>
> Then I compile and run this with my problem.
>


This is a great idea Joe!  I plan to steal this one!  :)

-- 
Onorio Catenacci

http://onor.io
http://www.google.com/+OnorioCatenacci
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160316/23c65261/attachment.html>


More information about the erlang-questions mailing list