anyone know of work on order/domain-theoretic semantics of pattern matching? I b...
rntz @rntz@recurse.social
anyone know of work on order/domain-theoretic semantics of pattern matching?
I begin to think there are two semantics for pattern matching:
1 take first matching branch
2 take all matching branches
1 requires a *monotone* "negation" operator, which I believe to be "incompatibility" (x,y are incompatible if they have no upper bound)
2 requires a join operator to combine the results of multiple branches
has this been observed before?