Skip to content

Allow side conditions in function clauses and lambda clauses #2983

@lukaszcz

Description

@lukaszcz

The PR

adds side condition syntax only for case-expressions. For the sake of syntax uniformity, we should allow them anywhere pattern matching is allowed, e.g.,

f (lst : List Nat) : Nat
  | [x]
       | if F x := A
       | if G x := B
       | else := C
  | _ := D;

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions