Skip to content

𝜏? syntax would be helpful (for matching what's not used later) #218

@yegor256

Description

@yegor256

This is my rule:

name: foo
pattern: '⟦ 𝜏1 ↦ 𝑒1, 𝜏2 ↦ 𝑒2 ⟧'
result: '⟦ x ↦ "yes!" ⟧'

Here, none of the substitutions are used in the result. However, I need to invent names for them, like 𝜏1 and 𝜏2.

Would be more convenient to use 𝜏? (or 𝜏*), which means 𝜏 whatever. It's uniquely matched, but not used in the result.

Maybe, for the sake of brevity, we may agree that 𝜏 (without index) means 𝜏 whatever. If index is specified, it's a specific match, possibly used in the result.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions