mdbergmann / cl-gserver

Sento - Actor framework featuring actors and agents for easy access to state and asynchronous operations.

Home Page:https://mdbergmann.github.io/cl-gserver/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.