News for hackers. Stuff that matters.
Re:Why Reliability Demands Functional Programming by cubefox on Tuesday December 30, 2025 @03:51PM (#46437843)
Thanks. I think in the end the question will be: which is better, an algebraic or a set-theoretic type system? Which is more practical to use? Which is more elegant? Should both be mixed?

(One complicating aspect is that there doesn't yet exist a mainstream language with full set-theoretic type system. TypeScript and Scala 3 currently only support intersections and unions, but no complements, making certain complex types not definable. E.g. "Int & ~0", integers without zero.)

There are no comments on this comment yet.