Skip to content

Enhancement Proposal #2

Description

@blisscs

Hi,

First of all, thank you for publishing this library.
I was looking for gen_server_less implementation of machinery that does not come with web dashboard part also.

I have read through the code and tests. It's exactly what I wanted.

I have some recommendation/feature requests -

  • Instead of using String data type for the state. I think we could let the state be of any types. for example, a tuple to represent a coordinate on x-y plane {0.0, 0.5}, or a list, or any other types.
  • Instead of using the :field to set the key to fetch the state from a map or a struct. I think we could use an anonymous function instead of string or atom key as a function to fetch the state out from data of any types.

My idea is that anything can have its own state, it could be a String, a Number, a Struct, a List.
Then we send this into mentioned above anonymous function to get the actual state out.

Let's me know what do you think of it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionEncourage community to engage in discussionfeature requestNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions