Changes for version 3
mdbergmann opened this issue · comments
- get rid of the
cons
return. No return should be necessary. The user will be responsible to change the state inside 'receive' function. Having to return something comes from Erlang GenServer. But we're not in Erlang here. I think for many people this is more an obstacle. Additionally, in highly loaded systems a lot of garbage must be collected in form of those conses. - receive function will just have one parameter: 'msg'. 'self' and 'state' will be made available via special variables
*self*
and*state*
accessible inside 'receive' function.
with #66