Re:Show HN: Conway's Game of Life in TypeScript's type system
by Thaxll on Friday September 08, 2023 @05:38PM
(#37439744)
I'm really confused, is it what TS is supposed to looks like?
[ Parent
| on HN ]
Re:Show HN: Conway's Game of Life in TypeScript's type system
by prologist on Friday September 08, 2023 @06:05PM
(#37439948)
It's just a demonstration of how to encode the transition rules for Conway's game of life as a set of types, aka logical constraints. TypeScript's type system has unification, same as in Prolog, and since Prolog is basically Turing complete so is TypeScript's type system.