[erlang-questions] gen_statem state enter call and changing t oanother state

Raimo Niskanen raimo+erlang-questions@REDACTED
Wed Jun 13 14:54:02 CEST 2018


On Wed, Jun 13, 2018 at 10:25:06AM +0200, Frans Schneider wrote:
> Well, that was an enlightening discussion. Just ditched the initial 
> implementation and started all over again. Conditions now are true 
> conditions and events are real events. The number of states now is half 
> the number they were, but the handle_event functions tend to be more 
> complex. I could remove the whole state enter functionality.

Oh...  That's good I guess...?

Enlightening discussion - agreed.

I have started to look at how changing state_calls into special events
instead of special calls would look in the code.
It might end up cleaner to reason about.

/ Raimo


> 
> Thanks,
> 
> Frans
> 

-- 

/ Raimo Niskanen, Erlang/OTP, Ericsson AB



More information about the erlang-questions mailing list