Skip to content

Why are underscores only allowed in type patterns? #2

@robsimmons

Description

@robsimmons

As near as I can tell, this is allowed:

a: type.
t2: PI [!_,!_] : (!a * !a) . a = \[!x,!y]. x.

but this is not, and gives a parse error:

t3: PI [!_,!_] : (!a * !a) . a = \[!x,!_]. x.

This is a bit inconsistent and makes it more difficult than it needs to be to explain patterns.

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