Skip to content

Add option to remove pattern match failure assertions #80

@natefaubion

Description

@natefaubion

In line with the main compiler, we insert pattern match failure assertions ($runtime.fail()) when there is no wildcard pattern. Since the pattern matching tree optimizer emits complete if/else trees, we should be able to omit the assertion when a branch covers all tags for a given ProperName.

This failure assertion is potentially useful for catching foreign errors sneaking through, so I think this could be an option like --int-tags.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions