[erlang-questions] Beginner question

Onorio Catenacci Catenacci@REDACTED
Wed Mar 16 13:00:32 CET 2016


>
> Message: 6
> Date: Tue, 15 Mar 2016 21:22:30 -0700
> From: Joe Armstrong <erlang@REDACTED>
> To: Pietro <pulsarpietro@REDACTED>
> Cc: Erlang <erlang-questions@REDACTED>
> Subject: Re: [erlang-questions] Beginner question
> Message-ID:
>         <
> CAANBt-r0K4j5jEG4CsWrYnnNNOTDy0+s6MFfmx4yuUmt6N6RZQ@REDACTED>
> 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.htm>


More information about the erlang-questions mailing list