-
Notifications
You must be signed in to change notification settings - Fork 0
Determinism #3
Copy link
Copy link
Open
Labels
invalidThis doesn't seem rightThis doesn't seem right
Description
We need to check for determinism, meaning that the matches must not have intersecting pattern.
let rec choice(n) = match n with
| Nil -> Eps
| Cons(a,m) -> match m with
| Nil -> a
| Cons(b,bs) -> choice(m)
| Cons(b,bs) -> a (* non determinism*)
this should be rejected
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
invalidThis doesn't seem rightThis doesn't seem right