Skip to content

Exhaustivity checking for pattern matches #12

@calebh

Description

@calebh

Currently Juniper does not check for exhaustiveness of pattern matches in match or let blocks. This feature is common in functional languages and is important for avoiding unexpected crashes. It would be nice if the compiler emitted a warning for non-exhaustive patterns. An additional feature that can probably be implemented in the same time is for determining if a match clause is unreachable due to a previous pattern. In papers that I've read that explore these topics, both of these features can be implemented using the same logic.

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