Skip to content

Add covering function parameter patterns #3

Description

@J3RN

I think the only covering patterns are

  • variable (e.g. a)
  • record (e.g. {foo: foo})

The primitives (Int, Float, Char, and String) cannot have covering patterns; nor can ADTs with multiple constructors (including Lists). I could add pattern support for ADTs with only a single constructor, but this feels like it would be an incoherent addition; reconsider later.

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