[erlang-questions] Deriving records from one another?
Mon Jun 23 16:24:18 CEST 2014
Is there a way to unsubscribe from this list?
On Mon, Jun 23, 2014 at 10:23 AM, Loïc Hoguin <essen@REDACTED> wrote:
> On 06/23/2014 03:49 PM, Roger Lipscombe wrote:
>> Now I'd like to actually start representing *state* with the State.
>> That is, I'd like to be able to match on #init, #ready,
>> #expecting_key, #whatever records. This will hopefully make the code
>> easier to read, and means that my record doesn't have to contain
>> fields for stuff that's not relevant in the given state.
> Don't. Use gen_fsm instead. That's what it's for.
> Loïc Hoguin
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions