Skip to content

Streamline TypedServer demo handle/2 #96

@erszcz

Description

@erszcz

In #95 we make the demo use an auxiliary handler handle/2 which doesn't take GenServer.from() as a parameter. This is due to the fact that the GenServer.from() is defined using term(), which disables exhaustiveness checking. The Erlang from() does not do that, but it uses an nonempty_improper_list() instead, which full support requires confirmation.

In order to achieve the simplest handler with exhaustiveness checking we would need to:

  • Fix Elixir GenServer.from() definition
  • Make sure nonempty_improper_list() does not break exhaustiveness checking

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions