Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Rage Against the Finite-State Machines. Parent comment
Erlang's gen_fsm has that too:
http://erlang.org/doc/man/gen_fsm.html#Module:handle_event-3
However that is a dangerous anti-pattern usually. More often than not, I want the actor to crash and have a proper trace and notification of it most of the time than have it go to some unspecified state and hang around forever in that broken state.
There are no comments on this comment yet.
Erlang's gen_fsm has that too:
http://erlang.org/doc/man/gen_fsm.html#Module:handle_event-3
However that is a dangerous anti-pattern usually. More often than not, I want the actor to crash and have a proper trace and notification of it most of the time than have it go to some unspecified state and hang around forever in that broken state.