Various (and almost completely unrelated) questions and opinions
Torbjorn Tornkvist
tobbe@REDACTED
Mon Feb 12 09:35:42 CET 2001
The code looks very nice.
The only thing I have to say is that in, for example, turtle.erl
you have to do the following:
Shelly = turtle:new(),
Shelly! {fd, 20}.
I would have wrapped the message sending in an exported function:
Shelly = turtle:new(),
turtle:fd(Shelly, 20).
That way you have one interface less to worry about.
I like to encapsulate the message sending/receiving
(i.e the protocol) within a single module (asynchronous
messages can be taken care of by function call-backs).
Cheers /Tobbe
More information about the erlang-questions
mailing list