Deliberate mistake in episode 6
Tom Ayerst
4 posts
|
Hi Kevin, Loving the screen casts, they are incredibly helpfull, far more so than I would have predicted. I especially like the deliberate mistakes that force me to really learn how things work ;-) In mucc.erl you have: proxy_client(Messages) -> receive {printmsg, MessageBody} -> proxy_client([MessageBody|Messages]); {get_messages, Caller} -> Caller ! {messages, lists:reverse(Messages)}, proxy_client([]); {send_message, Addressee, Message} -> message_router:send_chat_message(Addressee, Message); stop -> io:format(“Proxy stopping…~n”), ok end. There is no tail-recursion in the send_message… clause. It took me much longer to work out what was happening than it should have. Looking forward to the OTP episodes. Rgds. Tom |
Kevin Smith
20 posts
|
Gah. Apologies for the error. I’ll get the source bundle updated ASAP. |
2 posts, 2 voices
