Re:Show HN: Conway's Game of Life in TypeScript's type system
by chatmasta on Friday September 08, 2023 @05:59PM
(#37439894)
In the case of TypeScript, most of the magic and crazy hacks are dependent on Template Literal Types [0], which is what allows inference based on arbitrary strings. Once you have that abstraction, you can just keep adding complexity to it.
[0] https://www.typescriptlang.org/docs/handbook/2/template-lite...