Skip to content

[FEATURE] Allow guardable implementations. #6

Description

@OvermindDL1

Idea spurred on by: https://elixirforum.com/t/how-to-avoid-using-enumerable-impl-for/13314/11

Perhaps add the ability to make a guard that tests if a given value is implemented by a given protocol_ex, this is easy if they only use guards to test, but if matchers are used then would have to build up something more complicated, perhaps similar to how expat does it (perhaps even add it as a feature request to it, or a library that depends on both expat and protocol_ex?).

At the very least can support a function call that tests though, a baked function perhaps.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions