|
|
|
|
|
by sparkie
55 days ago
|
|
Sum types in the set theoretic approach can be made with `(A & ¬B) | (¬A & B)`, or equivalently `(A | B) & (¬A | ¬B)`. There's no mainstream language with negation types, but a few good research languages with them, eg MLstruct. [MLstruct]:https://github.com/hkust-taco/mlstruct |
|
This is cool. Unfortunately it's also too late now. The machines have taken over programming.