[erlang-questions] Deriving records from one another?

Timothy Das tim@REDACTED
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[1].
>> 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
> http://ninenines.eu
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140623/30176bf4/attachment.htm>


More information about the erlang-questions mailing list